Fix CI test failures (#4007)

This commit is contained in:
Yuhong Guo
2019-02-11 11:01:14 +08:00
committed by Hao Chen
parent e703b9f49d
commit 5fb1efd60d
4 changed files with 16 additions and 16 deletions
@@ -342,27 +342,27 @@ class TestObjectManager : public TestObjectManagerBase {
case 0: {
// Ensure timeout_ms = 0 is handled correctly.
// Out of 5 objects, we expect 3 ready objects and 2 remaining objects.
TestWait(100, 5, 3, /*timeout_ms=*/0, false, false);
TestWait(600, 5, 3, /*timeout_ms=*/0, false, false);
} break;
case 1: {
// Ensure timeout_ms = 1000 is handled correctly.
// Out of 5 objects, we expect 3 ready objects and 2 remaining objects.
TestWait(100, 5, 3, /*timeout_ms=*/1000, false, false);
TestWait(600, 5, 3, /*timeout_ms=*/1000, false, false);
} break;
case 2: {
// Generate objects locally to ensure local object code-path works properly.
// Out of 5 objects, we expect 3 ready objects and 2 remaining objects.
TestWait(100, 5, 3, 1000, false, /*test_local=*/true);
TestWait(600, 5, 3, 1000, false, /*test_local=*/true);
} break;
case 3: {
// Wait on an object that's never registered with GCS to ensure timeout works
// properly.
TestWait(100, /*num_objects=*/5, /*required_objects=*/6, 1000,
TestWait(600, /*num_objects=*/5, /*required_objects=*/6, 1000,
/*include_nonexistent=*/true, false);
} break;
case 4: {
// Ensure infinite time code-path works properly.
TestWait(100, 5, 5, /*timeout_ms=*/-1, false, false);
TestWait(600, 5, 5, /*timeout_ms=*/-1, false, false);
} break;
}
}