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

fix(core): Poll TimeoutLayer::sleep once to make sure timer registered #4230

Merged
merged 2 commits into from
Feb 21, 2024

Conversation

Xuanwo
Copy link
Member

@Xuanwo Xuanwo commented Feb 21, 2024

Our implementation of TimeoutLayer is still wrong in same cases. As suggested by @dantengsky & @zhang2014, we should poll it once to make sure the timer registered.

And we used to wrap our test logic inside a timeout call which could result in wrong test resute.

Signed-off-by: Xuanwo <[email protected]>
@Xuanwo Xuanwo changed the title feat(test): Cover the test for list timeout fix(core): Poll TimeoutLayer::sleep once to make sure timer registered Feb 21, 2024
@Xuanwo Xuanwo requested a review from suyanhanx February 21, 2024 04:37
Copy link
Member

@suyanhanx suyanhanx left a comment

Choose a reason for hiding this comment

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

Thanks

@Xuanwo Xuanwo merged commit 72e3ea0 into main Feb 21, 2024
41 checks passed
@Xuanwo Xuanwo deleted the add-test-for-timeout branch February 21, 2024 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants