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

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


The following commit(s) were added to refs/heads/master by this push:
     new e5a78a7  Fix flaky 
MasterTest.NonCheckpointingFrameworkAgentDisconnectionExecutorOnly.
e5a78a7 is described below

commit e5a78a78c1b706e1dfbe3166fcd1c1882770f6c2
Author: Charles-Francois Natali <cf.nat...@gmail.com>
AuthorDate: Thu Jan 28 16:08:01 2021 -0500

    Fix flaky 
MasterTest.NonCheckpointingFrameworkAgentDisconnectionExecutorOnly.
    
    After stopping the driver, we need to wait for the events to reach the
    master before checking that the framework has been removed.
    
    This closes #379
---
 src/tests/master_tests.cpp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/tests/master_tests.cpp b/src/tests/master_tests.cpp
index 3a89d7d..9dcda5d 100644
--- a/src/tests/master_tests.cpp
+++ b/src/tests/master_tests.cpp
@@ -7785,6 +7785,11 @@ TEST_F(MasterTest, 
NonCheckpointingFrameworkAgentDisconnectionExecutorOnly)
   // disconnection since the framework's failover timeout is 0.
   driver.stop(true);
 
+  // Make sure it reaches the master.
+  Clock::pause();
+  Clock::settle();
+  Clock::resume();
+
   // Check to make sure the framework is removed.
   {
     v1::master::Call call;

Reply via email to