diff options
author | Andreas Buhr <andreas@andreasbuhr.de> | 2021-03-09 12:24:21 +0100 |
---|---|---|
committer | Andreas Buhr <andreas@andreasbuhr.de> | 2021-04-07 21:39:29 +0100 |
commit | 091da38e7b51f09345c2cf18b63c96fcef826683 (patch) | |
tree | 19ffb87b202d21f460a1c12ae8915c532ab5d7a0 /tests/auto | |
parent | f1c04f8c93f0879620421362b04b33bf09867207 (diff) | |
download | qtconnectivity-091da38e7b51f09345c2cf18b63c96fcef826683.tar.gz |
Fix unit tests: Set timeout long enough
Unit tests wait for BlueZ to come back after at most 20 seconds.
On Andreas' machine, BlueZ scans for about 25 seconds, causing
tests to fail. This patch increses the timeout to 26.5 seconds.
Change-Id: I4cabc6a20231cb7d148660b2d951ba77b32c0a2f
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qlowenergycharacteristic/tst_qlowenergycharacteristic.cpp | 2 | ||||
-rw-r--r-- | tests/auto/qlowenergydescriptor/tst_qlowenergydescriptor.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qlowenergycharacteristic/tst_qlowenergycharacteristic.cpp b/tests/auto/qlowenergycharacteristic/tst_qlowenergycharacteristic.cpp index d4e6b9b5..39f86113 100644 --- a/tests/auto/qlowenergycharacteristic/tst_qlowenergycharacteristic.cpp +++ b/tests/auto/qlowenergycharacteristic/tst_qlowenergycharacteristic.cpp @@ -120,7 +120,7 @@ void tst_QLowEnergyCharacteristic::initTestCase() << remoteDevice.address() << remoteDevice.deviceUuid(); controller->connectToDevice(); QTRY_IMPL(controller->state() != QLowEnergyController::ConnectingState, - 20000); + 26500); if (controller->state() != QLowEnergyController::ConnectedState) { // any error and we skip delete controller; diff --git a/tests/auto/qlowenergydescriptor/tst_qlowenergydescriptor.cpp b/tests/auto/qlowenergydescriptor/tst_qlowenergydescriptor.cpp index ff7d185f..9d0907b6 100644 --- a/tests/auto/qlowenergydescriptor/tst_qlowenergydescriptor.cpp +++ b/tests/auto/qlowenergydescriptor/tst_qlowenergydescriptor.cpp @@ -110,7 +110,7 @@ void tst_QLowEnergyDescriptor::initTestCase() qDebug() << "Connecting to" << remoteDeviceInfo.address(); controller->connectToDevice(); QTRY_IMPL(controller->state() != QLowEnergyController::ConnectingState, - 20000) + 26500) if (controller->state() != QLowEnergyController::ConnectedState) { // any error and we skip delete controller; |