]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/crimson: send message only after getting the connection
authorYingxin Cheng <yingxin.cheng@intel.com>
Sat, 12 Oct 2019 08:18:00 +0000 (16:18 +0800)
committerYingxin Cheng <yingxin.cheng@intel.com>
Wed, 16 Oct 2019 01:29:46 +0000 (09:29 +0800)
It is possible for stateless/stateful server to lose the pending message
due to the remote markdown, causing unexpected test failure.

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

index 3046c8090ffd8068f859f1de3558dcdfb831949e..3d6aeb6744d3c35a965f2d741af9c1c50937b29f 100644 (file)
@@ -2945,8 +2945,8 @@ test_v2_lossy_client(FailoverTest& test) {
       return suite.markdown();
     }).then([&suite] {
       return suite.connect_peer();
-    }).then([&test] {
-      return test.send_bidirectional();
+    }).then([&suite] {
+      return suite.send_peer();
     }).then([&suite] {
       return suite.wait_results(2);
     }).then([] (ConnResults& results) {
@@ -2995,7 +2995,7 @@ test_v2_stateless_server(FailoverTest& test) {
     }).then([&test] {
       return test.peer_connect_me();
     }).then([&test] {
-      return test.send_bidirectional();
+      return test.peer_send_me();
     }).then([&suite] {
       return suite.wait_results(2);
     }).then([] (ConnResults& results) {