diff options
author | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-19 17:10:50 +0200 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-09-22 18:09:20 +0200 |
commit | ee7e5de79f83625df1adfb244b0d608dae480728 (patch) | |
tree | c6bd1ac47a6fdc069154875ab5dbf268ab83bbe5 /tests | |
parent | 1ca6c7522bbd6ee9ea711e17f98d8c96c8e8c45a (diff) | |
download | qtlocation-ee7e5de79f83625df1adfb244b0d608dae480728.tar.gz |
Stabilize flaky tests
When testing model resets, wait until it reports data using tryVerify
instead of a hardcoded single milisecond.
Change-Id: Id3f3464f54a2b05e25c602594357e767eb8bbdba
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative_location_core/utils.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/auto/declarative_location_core/utils.js b/tests/auto/declarative_location_core/utils.js index 2b7dca32..025f7771 100644 --- a/tests/auto/declarative_location_core/utils.js +++ b/tests/auto/declarative_location_core/utils.js @@ -146,8 +146,7 @@ function testReset(testCase, model, place) dataModel.model = model; model.place = place; - testCase.wait(1); - testCase.verify(model.totalCount > 0); + testCase.tryVerify(() => { return model.totalCount > 0 }, 100); testCase.verify(dataModel.items.count > 0); model.place = null; |