aboutsummaryrefslogtreecommitdiffstats
path: root/messagebus/src/tests
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@yahooinc.com>2022-05-25 11:40:12 +0000
committerHåvard Pettersen <havardpe@yahooinc.com>2022-05-25 11:40:12 +0000
commit8a714b77eab4644371cc04da1fe8e7bc1bc7952a (patch)
tree9ae4cdb1b9fe5b07c3e54665816b84712d8ae2de /messagebus/src/tests
parentd0824fc978da7240f9a16a3fb4197b21628d9abc (diff)
fix undefined behavior in messagebus unit tests
also avoids hanging/leaving processes after running all unit tests with UBSAN without recovery.
Diffstat (limited to 'messagebus/src/tests')
-rw-r--r--messagebus/src/tests/messageordering/messageordering.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/messagebus/src/tests/messageordering/messageordering.cpp b/messagebus/src/tests/messageordering/messageordering.cpp
index 919d242fc47..e82e58d1730 100644
--- a/messagebus/src/tests/messageordering/messageordering.cpp
+++ b/messagebus/src/tests/messageordering/messageordering.cpp
@@ -155,6 +155,7 @@ Test::Main()
ssp.setTimeout(400s);
SourceSession::UP ss = srcNet.mb.createSourceSession(src, ssp);
DestinationSession::UP ds = dstNet.mb.createDestinationSession("session", true, dst);
+ dst.setDestinationSession(*ds);
ASSERT_EQUAL(400s, ssp.getTimeout());
// wait for slobrok registration