fix: integration tests in release mode

This commit is contained in:
Stanislav Angelovic
2023-01-03 16:30:26 +01:00
committed by Stanislav Angelovič
parent 7a09e9bcc8
commit 8bbeeeb4ce
2 changed files with 3 additions and 2 deletions

View File

@ -65,7 +65,7 @@ jobs:
run: |
cd build
sudo cmake --build . --target install
ctest
ctest --output-on-failure
- name: pack
if: matrix.build == 'shared-libsystemd' && matrix.os == 'ubuntu-20.04'
run: |

View File

@ -116,7 +116,8 @@ TEST_F(AConnection, CanAddFloatingMatchRule)
};
con->addMatch(matchRule, std::move(callback), sdbus::floating_slot);
m_adaptor->emitSimpleSignal();
assert(waitUntil(matchingMessageReceived, 2s));
[[maybe_unused]] auto gotMessage = waitUntil(matchingMessageReceived, 2s);
assert(gotMessage);
matchingMessageReceived = false;
con.reset();