Skip to content

StoreKit1WrapperTests: avoid using Bool.random to fix flaky code coverage#2258

Merged
NachoSoto merged 1 commit into
mainfrom
coverage-flaky-results
Feb 2, 2023
Merged

StoreKit1WrapperTests: avoid using Bool.random to fix flaky code coverage#2258
NachoSoto merged 1 commit into
mainfrom
coverage-flaky-results

Conversation

@NachoSoto

@NachoSoto NachoSoto commented Feb 2, 2023

Copy link
Copy Markdown
Contributor

Fixes https://app.codecov.io/gh/RevenueCat/purchases-ios/pull/2257

Screenshot 2023-02-02 at 11 48 14

Depending on this value, we were evaluating a different string.

@NachoSoto NachoSoto added the test label Feb 2, 2023
@NachoSoto NachoSoto requested a review from a team February 2, 2023 19:38
@NachoSoto NachoSoto force-pushed the coverage-flaky-results branch from be67830 to 3b59a9a Compare February 2, 2023 19:47
@NachoSoto NachoSoto changed the title Code coverage: fix flaky results by avoiding warning log StoreKit1WrapperTests: avoid using Bool.random to fix flaky code coverage Feb 2, 2023
@codecov

codecov Bot commented Feb 2, 2023

Copy link
Copy Markdown

Codecov Report

Merging #2258 (3b59a9a) into main (7985b03) will increase coverage by 0.14%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main    #2258      +/-   ##
==========================================
+ Coverage   85.85%   85.99%   +0.14%     
==========================================
  Files         183      183              
  Lines       12125    12125              
==========================================
+ Hits        10410    10427      +17     
+ Misses       1715     1698      -17     
Impacted Files Coverage Δ
Sources/Logging/Strings/StoreKitStrings.swift 91.17% <0.00%> (+1.47%) ⬆️
Sources/Logging/Strings/NetworkStrings.swift 100.00% <0.00%> (+1.63%) ⬆️
Sources/Support/ManageSubscriptionsHelper.swift 70.10% <0.00%> (+2.06%) ⬆️
Sources/Networking/HTTPClient/HTTPClient.swift 98.20% <0.00%> (+4.31%) ⬆️
...s/Logging/Strings/ManageSubscriptionsStrings.swift 81.25% <0.00%> (+6.25%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@NachoSoto NachoSoto merged commit 4b2665c into main Feb 2, 2023
@NachoSoto NachoSoto deleted the coverage-flaky-results branch February 2, 2023 23:04
NachoSoto pushed a commit that referenced this pull request Feb 8, 2023
**This is an automatic release.**

### Dependency Updates
* Bump fastlane-plugin-revenuecat_internal from `738f255` to `9255366`
(#2264) via dependabot[bot] (@dependabot[bot])
* Update `Gemfile.lock` (#2254) via Cesar de la Vega (@vegaro)
### Other Changes
* `HTTPClient`: added support for sending `X-Nonce` (#2214) via
NachoSoto (@NachoSoto)
* `Configuration`: added (`internal` for now) API to load public key
(#2215) via NachoSoto (@NachoSoto)
* Replaced `Any` uses for workaround with `Box` (#2250) via NachoSoto
(@NachoSoto)
* `HTTPClientTests`: fixed failing test with missing assertions (#2262)
via NachoSoto (@NachoSoto)
* `HTTPClientTests`: refactored tests to use `waitUntil` (#2257) via
NachoSoto (@NachoSoto)
* PurchaseTester: Add Receipt Inspector UI (#2249) via Andy Boedo
(@aboedo)
* Adds dependabot (#2259) via Cesar de la Vega (@vegaro)
* `StoreKit1WrapperTests`: avoid using `Bool.random` to fix flaky code
coverage (#2258) via NachoSoto (@NachoSoto)
* `IntroEligibilityCalculator`: changed logic to handle products with no
subscription group (#2247) via NachoSoto (@NachoSoto)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants