Skip to content

Commit

Permalink
Correctly register all idling resources
Browse files Browse the repository at this point in the history
This was a test bug that caused this test to flake because the idling resources were not waiting for resource "C" to become idle.

PiperOrigin-RevId: 436558912
  • Loading branch information
Googler authored and hoisie committed Mar 22, 2022
1 parent 3e13ccf commit 52a8a07
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -88,7 +88,7 @@ public void onIdle_cooperativeResources() {
NamedIdleResource a = new NamedIdleResource("A", /* isIdle= */ true);
NamedIdleResource b = new NamedIdleResource("B", /* isIdle= */ false);
NamedIdleResource c = new NamedIdleResource("C", /* isIdle= */ false);
idlingRegistry.register(a, b);
idlingRegistry.register(a, b, c);
executor.submit(
() -> {
a.setIdle(false);
Expand Down

0 comments on commit 52a8a07

Please sign in to comment.