Skip to content

Commit 508b819

Browse files
chore(rxbindings) second attempt to fix transient test failures (#990)
1 parent da6df07 commit 508b819

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rxbindings/src/test/java/com/amplifyframework/rx/RxStorageBindingTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ public void downloadFileReturnsResult() throws InterruptedException {
139139
TestObserver<StorageTransferProgress> testProgressObserver = rxOperation.observeProgress().test();
140140
testObserver.await(TIMEOUT_MS, TimeUnit.MILLISECONDS);
141141
testObserver.assertValues(result);
142+
testProgressObserver.awaitCount(5);
142143
testProgressObserver.assertValueCount(5);
143144
}
144145

@@ -204,6 +205,7 @@ public void uploadFileReturnsResult() throws InterruptedException {
204205
TestObserver<StorageTransferProgress> testProgressObserver = rxOperation.observeProgress().test();
205206
testObserver.await(TIMEOUT_MS, TimeUnit.MILLISECONDS);
206207
testObserver.assertValues(result);
208+
testProgressObserver.awaitCount(5);
207209
testProgressObserver.assertValueCount(5);
208210
}
209211

@@ -242,6 +244,7 @@ public void uploadInputStreamReturnsResult() throws InterruptedException {
242244
TestObserver<StorageTransferProgress> testProgressObserver = rxOperation.observeProgress().test();
243245
testObserver.await(TIMEOUT_MS, TimeUnit.MILLISECONDS);
244246
testObserver.assertValues(result);
247+
testProgressObserver.awaitCount(5);
245248
testProgressObserver.assertValueCount(5);
246249
}
247250

0 commit comments

Comments
 (0)