Skip to content

Commit ad3266d

Browse files
committed
Revert "Fix flaky test (#6132)"
This reverts commit 26c8a5a.
1 parent a94ddbf commit ad3266d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

firebase-crashlytics/src/androidTest/java/com/google/firebase/crashlytics/internal/CrashlyticsWorkerTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public void submitTaskFromAnotherWorkerDoesNotUseLocalThreads() throws Exception
385385
Task<Integer> otherTask =
386386
crashlyticsWorker.submit(
387387
() -> {
388-
sleep(300);
388+
sleep(30);
389389
return localExecutor.getActiveCount();
390390
});
391391

@@ -395,8 +395,6 @@ public void submitTaskFromAnotherWorkerDoesNotUseLocalThreads() throws Exception
395395
// 1 active thread when doing a local task.
396396
assertThat(Tasks.await(localWorker.submit(localExecutor::getActiveCount))).isEqualTo(1);
397397

398-
sleep(1); // The test is a bit flaky without this.
399-
400398
// 0 active local threads when waiting for other task.
401399
// Waiting for a task from another worker does not block a local thread.
402400
assertThat(Tasks.await(localWorker.submitTask(() -> otherTask))).isEqualTo(0);

0 commit comments

Comments
 (0)