Skip to content

Commit 6fb8e9f

Browse files
Cleanup
1 parent 7fabd7f commit 6fb8e9f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

firebase-firestore/src/test/java/com/google/firebase/firestore/util/ThrottledForwardingExecutorTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void limitsNumberOfForwardedTasks() throws InterruptedException {
3434
ThrottledForwardingExecutor throttledExecutor =
3535
new ThrottledForwardingExecutor(maximumConcurrency, countingExecutor);
3636

37-
// Schedule more than `maximumConcurrency` parallel task and block until all scheduling has
37+
// Schedule more than `maximumConcurrency` parallel tasks and wait until all scheduling has
3838
// finished.
3939
int numTasks = maximumConcurrency + 1;
4040
CountDownLatch schedulingLatch = new CountDownLatch(1);
@@ -44,7 +44,8 @@ public void limitsNumberOfForwardedTasks() throws InterruptedException {
4444
() -> {
4545
try {
4646
if (currentTask < maximumConcurrency) {
47-
// Only block if we are running on the forwarded executor.
47+
// Block if we are running on the forwarded executor. We can't block the thread that
48+
// is running this test.
4849
schedulingLatch.await();
4950
}
5051
completedTasks.release();

0 commit comments

Comments
 (0)