Skip to content

pkg/plugins: make unit test less time sensitive#45889

Merged
thaJeztah merged 1 commit intomoby:masterfrom
corhere:fix-flaky-plugins-client-test
Jul 5, 2023
Merged

pkg/plugins: make unit test less time sensitive#45889
thaJeztah merged 1 commit intomoby:masterfrom
corhere:fix-flaky-plugins-client-test

Conversation

@corhere
Copy link
Copy Markdown
Contributor

@corhere corhere commented Jul 5, 2023

TestClientWithRequestTimeout has been observed to flake in CI. The timing in the test is quite tight, only giving the client a 10ms window to time out, which could potentially be missed if the host is under load and the goroutine scheduling is unlucky. Give the client a full five seconds of grace to time out before failing the test.

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

TestClientWithRequestTimeout has been observed to flake in CI. The
timing in the test is quite tight, only giving the client a 10ms window
to time out, which could potentially be missed if the host is under
load and the goroutine scheduling is unlucky. Give the client a full
five seconds of grace to time out before failing the test.

Signed-off-by: Cory Snider <[email protected]>
@thaJeztah
Copy link
Copy Markdown
Member

I guess this fixes #38587 (hopefully), so added that to the PR description

Copy link
Copy Markdown
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

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.

Flaky test: TestClientWithRequestTimeout

3 participants