-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instrumentation test coroutines #7207
Merged
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
bb381ca
adding test helpers when using coroutines with live data
ouchadam b4dde44
replacing latched live data waiting with coroutines
ouchadam 4552f43
adding suspending test account creation
ouchadam 6b9e5a2
removing unused helpers
ouchadam 743667b
converting test helper to use coroutine based waits
ouchadam 79fd5bf
adding suspending message sending and top level suspending runTest he…
ouchadam f90667a
creating wrapper function for testing coroutine timeouts
ouchadam e3fb362
using suspending periodic retries for the E2E share history tests
ouchadam e59cadc
replacing direct usages of withTimeout with the deferred result readi…
ouchadam 7f0955b
allowing the live data suspending wrapper to clean up on cancellation
ouchadam 6ebda6b
replacing send message test periodic retries with suspending versions
ouchadam 71d18bb
forcing periodic retries to block the test thread
ouchadam 24a7ea9
using suspending message sending and removing duplicated retry rule
ouchadam 4004263
using default context when running tests to allow delays to execute
ouchadam e39faa8
replacing latches with suspending versions
ouchadam ad5ec06
adding suspending account login helpers
ouchadam 2470796
replace latches with suspending funcs
ouchadam c42d6f1
converting auto verification test to coroutine suspends
ouchadam 62338ed
removing unused non suspending wait for invite
ouchadam 942e3bd
increasing the default runTest timeout
ouchadam 46434c8
replacing latches with suspending versions
ouchadam 26db94d
updating encryption test to use suspending functions
ouchadam 1f6dbbd
using suspending versions of doSync
ouchadam 8e226bc
updating preshare tests to use suspending methods
ouchadam 1006e9e
updating search message tests to use suspending functions
ouchadam 969e98d
marking doE2ETestWithAliceInARoom as suspending
ouchadam 800746b
replacing some keysbackup latch usages
ouchadam fff364f
replacing withheld test latch usages with suspends
ouchadam 85eb46f
replacing create dm latch with suspends
ouchadam cff63e6
making ensureCan/CannotDecrypt test functions suspending
ouchadam 080e5bb
replacing latches with suspending version
ouchadam fec4bf1
making the test session clean up suspending
ouchadam fa97699
making test login and create account usages suspending
ouchadam 801afdd
using shouldbeequalto as we're checking values rather than instances
ouchadam e3a9e4e
removing test sleeps, the test is passing without
ouchadam f4da2d8
converting unwedging test to use coroutines/suspends instead of latches
ouchadam 0b844ea
converting space creation tests to suspends
ouchadam aff82a6
converting space hierarchy tests to suspends
ouchadam 75becaf
making all test createAccount usages suspending
ouchadam 9d3fdda
making all runCryptoTest suspending
ouchadam 20f7fc0
renaming all suspending test runners back to their original names now…
ouchadam 087be63
using suspending text message sending for all instrumentation tests
ouchadam a9361c7
making all test doSync calls suspending instead of latch
ouchadam ae51bfe
removing no longer needed test runBlocking or launch
ouchadam 5ed9e75
replacing remaining period wait with latch with suspending version
ouchadam 707f3bf
replacing remaining latched wait usages with suspends
ouchadam 53e8e25
removing no longer need runBlocking
ouchadam 2c338bd
renaming function for better context
ouchadam 99d01b2
removing unused scope
ouchadam e09f9bc
disabling test retries to help identify flaky tests
ouchadam 2c446ce
including waiting for the room topic to be updated
ouchadam ff012bd
replacing latches in keysbackup tests
ouchadam aef44a3
ensuring the verification listener is removed before resuming
ouchadam bf153e2
removing unused imports and re-enabling retry test rule
ouchadam 3e46263
using correct license for matrix sdk class
ouchadam c595475
adding changelog entry
ouchadam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Ports SDK instrumentation tests to use suspending functions instead of countdown latches |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the
runCryptoTest
&runSessionTest
are now suspending which meansrunBlockingTest
is the equivalent of running in the original scope