Skip to content

Fix flaky TestBasicTimerFunctionality on Windows#3463

Open
veblush wants to merge 1 commit intotensorflow:mainfrom
veblush:time-test
Open

Fix flaky TestBasicTimerFunctionality on Windows#3463
veblush wants to merge 1 commit intotensorflow:mainfrom
veblush:time-test

Conversation

@veblush
Copy link
Collaborator

@veblush veblush commented Feb 12, 2026

Windows machines are too fast to see time flow. :)

BUG=n/a

@veblush veblush requested a review from a team as a code owner February 12, 2026 17:59
@veblush veblush added the ci:full Triggers the comprehensive cross-platform test suite. label Feb 12, 2026
@veblush veblush requested a review from suleshahid February 12, 2026 17:59
EXPECT_TRUE(ticks_per_second == 0 ||
tflite::GetCurrentTimeTicks() - start_time > 0);
// Verify that time has actually advanced.
EXPECT_GT(tflite::GetCurrentTimeTicks(), start_time);
Copy link
Member

@ddavis-2015 ddavis-2015 Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't account for hardware timer rollover. Maybe just skip this check altogether, as the for loop accounts for the hardware timer advancing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:full Triggers the comprehensive cross-platform test suite.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants