summaryrefslogtreecommitdiff
path: root/tests/unit/unittest/sqlitedatabase-test.cpp
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@qt.io>2023-02-22 14:20:53 +0100
committerMarco Bubke <marco.bubke@qt.io>2023-02-23 09:05:54 +0000
commite675fecb9e56167509879e7c087dd06bb513acc8 (patch)
treee8ee5a434cfad443c0ad36ffeb8a3d8e95161341 /tests/unit/unittest/sqlitedatabase-test.cpp
parent42bb3a85793b20592ebe117c48c2ac9a34dfa061 (diff)
downloadqt-creator-e675fecb9e56167509879e7c087dd06bb513acc8.tar.gz
UnitTests: Make test fore robust
Change-Id: I6e92f242f759a89a11c77d862b5158c86b2b7a5a Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Diffstat (limited to 'tests/unit/unittest/sqlitedatabase-test.cpp')
-rw-r--r--tests/unit/unittest/sqlitedatabase-test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/unittest/sqlitedatabase-test.cpp b/tests/unit/unittest/sqlitedatabase-test.cpp
index 8cb52444f5..d15931888b 100644
--- a/tests/unit/unittest/sqlitedatabase-test.cpp
+++ b/tests/unit/unittest/sqlitedatabase-test.cpp
@@ -330,7 +330,7 @@ TEST_F(SqliteDatabase, SessionsCommit)
.write(2, "hoo");
database.applyAndUpdateSessions();
- ASSERT_THAT(names(), ElementsAre("foo", "bar"));
+ ASSERT_THAT(names(), UnorderedElementsAre("foo", "bar"));
}
TEST_F(SqliteDatabase, SessionsRollback)