forcedotcom / SalesforceMobileSDK-Shared

BSD 3-Clause "New" or "Revised" License
68 stars 92 forks source link

Fixes flaky tests in trySync* methods #529

Closed gkotula closed 2 years ago

gkotula commented 2 years ago

Since syncs run on a parallel thread to the JS runtime, sometimes the sync operation can make progress before the assertion which checks for 0% progress. Since there are other native tests which check the sync operations' behavior, the assertions here can be relaxed a bit to ensure tests pass.