You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by gi...@apache.org on 2019/01/24 00:12:44 UTC

[mesos] 01/02: Fixed a test flakiness in ROOT_CleanupAfterReboot.

This is an automated email from the ASF dual-hosted git repository.

gilbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mesos.git

commit b54b493d6d6ae479d2154ed05f9615a11d662391
Author: Gilbert Song <so...@gmail.com>
AuthorDate: Tue Jan 22 17:13:15 2019 -0800

    Fixed a test flakiness in ROOT_CleanupAfterReboot.
    
    Review: https://reviews.apache.org/r/69809
---
 src/tests/containerizer/cni_isolator_tests.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/tests/containerizer/cni_isolator_tests.cpp b/src/tests/containerizer/cni_isolator_tests.cpp
index f5e1a7a..0fc664b 100644
--- a/src/tests/containerizer/cni_isolator_tests.cpp
+++ b/src/tests/containerizer/cni_isolator_tests.cpp
@@ -2685,7 +2685,8 @@ TEST_F(CniIsolatorTest, ROOT_CleanupAfterReboot)
   EXPECT_CALL(sched, statusUpdate(&driver, _))
     .WillOnce(FutureArg<1>(&statusStarting))
     .WillOnce(FutureArg<1>(&statusRunning))
-    .WillOnce(FutureArg<1>(&statusGone));
+    .WillOnce(FutureArg<1>(&statusGone))
+    .WillRepeatedly(Return()); // Ignore subsequent updates.
 
   driver.launchTasks(offer.id(), {task});