diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-03 20:25:05 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-08-03 20:25:05 +0900 |
commit | 54c7eeab3e42737c7261aa2ae085cf87e616ee1b (patch) | |
tree | 750cd45beb3a3317bf1075b0f5765846bdfee045 /examples/qmc-example.cpp | |
parent | b9833c1ad21e1a57ff5d33ad94cb3b865159d06a (diff) | |
download | libquotient-54c7eeab3e42737c7261aa2ae085cf87e616ee1b.tar.gz libquotient-54c7eeab3e42737c7261aa2ae085cf87e616ee1b.zip |
qmc-example: fix assertion failure
Diffstat (limited to 'examples/qmc-example.cpp')
-rw-r--r-- | examples/qmc-example.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/qmc-example.cpp b/examples/qmc-example.cpp index 10ea9d35..f649ac3f 100644 --- a/examples/qmc-example.cpp +++ b/examples/qmc-example.cpp @@ -408,16 +408,14 @@ void QMCTest::setTopic() if (evt->transactionId() != fakeTxnId) return false; - if (evt.deliveryStatus() == EventStatus::SendingFailed) { - QMC_CHECK("Fake state event immunity test", true); + // If Synapse rejected the event, skip the immunity test. + if (evt.deliveryStatus() == EventStatus::SendingFailed) return true; - } + if (evt.deliveryStatus() != EventStatus::ReachedServer) return false; // All before was just a preparation, this is where the test starts. - // (If Synapse rejected the event the library immunity can't be - // tested.) static const char* const fakeStateTestName = "Fake state event immunity test"; running.push_back(fakeStateTestName); |