Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 03ebb2a

Browse files
committed
Relax time interval check
1 parent 864e6c1 commit 03ebb2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell/platform/darwin/macos/framework/Source/FlutterVSyncWaiterTest.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,8 @@ static void BusyWait(CFTimeInterval duration) {
173173
EXPECT_EQ(entries.size(), size_t(4));
174174

175175
// Warm up frame should be presented as soon as possible.
176-
EXPECT_TRUE(fabs(entries[0].timestamp - now) < 0.001);
177-
EXPECT_TRUE(fabs(entries[0].targetTimestamp - now) < 0.001);
176+
EXPECT_TRUE(fabs(entries[0].timestamp - now) < 0.005);
177+
EXPECT_TRUE(fabs(entries[0].targetTimestamp - now) < 0.005);
178178
EXPECT_EQ(entries[0].baton, kWarmUpBaton);
179179

180180
EXPECT_DOUBLE_EQ(entries[1].timestamp, now + displayLink.nominalOutputRefreshPeriod);

0 commit comments

Comments
 (0)