Skip to content

Commit

Permalink
Dont' expect a warning when expecting errors
Browse files Browse the repository at this point in the history
The error/s will trump (prevent) the warning.
  • Loading branch information
pcolby committed Jan 9, 2025
1 parent 493229d commit b20d4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/cli/testabstractcommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ void TestAbstractCommand::processOptions_timeout()

MockCommand mock;
const int defaultTimeout = mock.discoveryAgent->lowEnergyDiscoveryTimeout(); // eg 20s on Linux.
if (defaultTimeout == -1) {
if ((!expectErrors) && (defaultTimeout == -1)) {
QTest::ignoreMessage(QtWarningMsg, "Platform does not support Bluetooth scan timeout");
}
const QStringList errors = mock.processOptions(parser);
Expand Down

0 comments on commit b20d4e6

Please sign in to comment.