Skip to content

Commit

Permalink
Bump timeout after recent flaky failure.
Browse files Browse the repository at this point in the history
[]

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=129894231
  • Loading branch information
cpovirk committed Aug 10, 2016
1 parent 80a312f commit 8cc9ed6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import static com.google.common.truth.Truth.assertThat;
import static java.util.Arrays.asList;
import static java.util.concurrent.TimeUnit.SECONDS;

import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
Expand Down Expand Up @@ -258,15 +259,15 @@ public void testTimeouts() throws Exception {
fail();
} catch (TimeoutException expected) {
}
manager.awaitHealthy(100, TimeUnit.MILLISECONDS); // no exception thrown
manager.awaitHealthy(5, SECONDS); // no exception thrown

manager.stopAsync();
try {
manager.awaitStopped(1, TimeUnit.MILLISECONDS);
fail();
} catch (TimeoutException expected) {
}
manager.awaitStopped(100, TimeUnit.MILLISECONDS); // no exception thrown
manager.awaitStopped(5, SECONDS); // no exception thrown
}

/**
Expand Down

0 comments on commit 8cc9ed6

Please sign in to comment.