Skip to content

Commit 5fd5d90

Browse files
committed
Relax database session timestamp test timing
Allow slow Windows CI runners more time for SQLite initialization before asserting the first session timestamp. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 2bfc77f4-1a25-439f-8552-16750895413b
1 parent 21b645f commit 5fd5d90

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎tests/unittests/LogSessionDataDBTests.cpp‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,9 @@ TEST_F(LogSessionDataDBTests, subTest) {
8383
#ifndef USE_ROOM
8484
logSessionData = logSessionDataProvider->GetLogSessionData();
8585
auto sessionFirstTime= logSessionData->getSessionFirstTime();
86-
EXPECT_IN_RANGE(sessionFirstTime, now , now + 1000);
86+
// Database initialization can take longer than one second on slower CI
87+
// runners before the first session timestamp is created.
88+
EXPECT_IN_RANGE(sessionFirstTime, now, now + 5000);
8789
auto sdkUid = logSessionData->getSessionSDKUid();
8890
EXPECT_TRUE(sdkUid.size());
8991

@@ -97,4 +99,3 @@ TEST_F(LogSessionDataDBTests, subTest) {
9799
ASSERT_EQ(1, 1);
98100
#endif
99101
}
100-

0 commit comments

Comments
 (0)