You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NCBC-4131: Address flaky unit test on Task.WhenAnySuccessful
Motivation
----------
The unit test on Task.WhenAnySuccessful is flaky because it is affected
by race conditions.
Modifications
-------------
Rewrite the test to not use truly async logic and Task.Delay, instead
controlling TaskCompletionSource objects directly. Also, don't require
that the first successful task be returned, merely one of the successful
tasks.
Results
-------
The unit test is more consistent, especially on resource constrained
systems like build agents.
Change-Id: I62a6df807f31db4deac4b128afe390eef437b771
Reviewed-on: https://review.couchbase.org/c/couchbase-net-client/+/239337
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Jeffry Morris <jeffrymorris@gmail.com>
0 commit comments