Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Fix test failure waiting for passed time #6580

Merged
merged 1 commit into from
May 11, 2024

Conversation

joeyparrish
Copy link
Member

In some rare cases, particularly on Fuchsia-based Chromecasts at the moment, I am seeing test failures where the test is waiting for a time that has already passed. It appears that the timeupdate events may be missed in some cases. The currentTime appears to be less than the target at the last timeupdate event, then the time progresses internally, then a buffering state is hit and no new timeupdate events fire. So the Waiter class should use a timer for this as it does for many other types of waits.

In some rare cases, particularly on Fuchsia-based Chromecasts at the moment, I am seeing test failures where the test is waiting for a time that has already passed. It appears that the `timeupdate` events may be missed in some cases. The `currentTime` appears to be less than the target at the last `timeupdate` event, then the time progresses internally, then a buffering state is hit and no new `timeupdate` events fire. So the Waiter class should use a timer for this as it does for many other types of waits.
@shaka-bot
Copy link
Collaborator

Incremental code coverage: No instrumented code was changed.

@theodab theodab merged commit 04d816c into shaka-project:main May 11, 2024
20 checks passed
@joeyparrish joeyparrish deleted the fix-waiting-for-passed-time branch May 11, 2024 14:59
avelad pushed a commit that referenced this pull request May 13, 2024
In some rare cases, particularly on Fuchsia-based Chromecasts at the moment, I am seeing test failures where the test is waiting for a time that has already passed. It appears that the `timeupdate` events may be missed in some cases. The `currentTime` appears to be less than the target at the last `timeupdate` event, then the time progresses internally, then a buffering state is hit and no new `timeupdate` events fire. So the Waiter class should use a timer for this as it does for many other types of waits.
joeyparrish added a commit that referenced this pull request May 31, 2024
In some rare cases, particularly on Fuchsia-based Chromecasts at the moment, I am seeing test failures where the test is waiting for a time that has already passed. It appears that the `timeupdate` events may be missed in some cases. The `currentTime` appears to be less than the target at the last `timeupdate` event, then the time progresses internally, then a buffering state is hit and no new `timeupdate` events fire. So the Waiter class should use a timer for this as it does for many other types of waits.
@shaka-bot shaka-bot added the status: archived Archived and locked; will not be updated label Jul 10, 2024
@shaka-project shaka-project locked as resolved and limited conversation to collaborators Jul 10, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
status: archived Archived and locked; will not be updated
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants