test/crimson: msgr should wait before shutdown
authorYingxin Cheng <yingxincheng@gmail.com>
Tue, 19 Mar 2019 14:20:12 +0000 (22:20 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 5 Apr 2019 03:21:19 +0000 (11:21 +0800)
test_concurrent_dispatch() should wait for server->wait() before
shutting down its messengers.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
src/test/crimson/test_messenger.cc

index 4115773fa2b525328f304ac2d7a9f9ed18400c9e..0601ad63da7a2eb600985cffcb03976988a29d6b 100644 (file)
@@ -405,7 +405,7 @@ static seastar::future<> test_concurrent_dispatch(bool v2)
           (*conn)->send(MessageRef{new MPing, false});
           (*conn)->send(MessageRef{new MPing, false});
         }).then([server] {
-          server->wait();
+          return server->wait();
         }).finally([client] {
           logger().info("client shutdown...");
           return client->msgr->shutdown();