]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test/crimson: add delay to markdown_peer()
authorYingxin Cheng <yingxin.cheng@intel.com>
Fri, 25 Oct 2019 02:15:04 +0000 (10:15 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Mon, 28 Oct 2019 02:43:08 +0000 (10:43 +0800)
Let test sleep awhile for peer markdown propagated.

Signed-off-by: Yingxin Cheng <yingxin.cheng@intel.com>
src/test/crimson/test_messenger.cc

index 0ee7f2876b0f5a21c967eabd196e7e066bb0f41c..c216afdebf0f1a03c77938b494fb6ea41fcf91af 100644 (file)
@@ -1496,7 +1496,10 @@ class FailoverTest : public Dispatcher {
 
   seastar::future<> markdown_peer() {
     logger().info("[Test] markdown_peer()");
-    return prepare_cmd(cmd_t::suite_markdown);
+    return prepare_cmd(cmd_t::suite_markdown).then([] {
+      // sleep awhile for peer markdown propagated
+      return seastar::sleep(100ms);
+    });
   }
 };