Skip to content

Reduce TestClientWithRequestTimeout flakiness#42580

Merged
justincormack merged 1 commit intomoby:masterfrom
thaJeztah:reduce_TestClientWithRequestTimeout_flakiness
Jul 19, 2021
Merged

Reduce TestClientWithRequestTimeout flakiness#42580
justincormack merged 1 commit intomoby:masterfrom
thaJeztah:reduce_TestClientWithRequestTimeout_flakiness

Conversation

@thaJeztah
Copy link
Member

hopefully addresses part of #38587

The test sometimes failed because no error was returned:

=== Failed
=== FAIL: pkg/plugins TestClientWithRequestTimeout (0.00s)
     client_test.go:254: assertion failed: expected an error, got nil: expected error

Possibly caused by a race condition, as the sleep was just 1 ms longer than the timeout;
this patch is increasing the sleep in the response to try to reduce flakiness.

The test sometimes failed because no error was returned:

    === Failed
    === FAIL: pkg/plugins TestClientWithRequestTimeout (0.00s)
         client_test.go:254: assertion failed: expected an error, got nil: expected error

Possibly caused by a race condition, as the sleep was just 1 ms longer than the timeout;
this patch is increasing the sleep in the response to try to reduce flakiness.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah
Copy link
Member Author

@cpuguy83 @AkihiroSuda ptal

Copy link
Member

@samuelkarp samuelkarp left a comment

Choose a reason for hiding this comment

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

LGTM

@justincormack justincormack merged commit fb21a1e into moby:master Jul 19, 2021
@thaJeztah thaJeztah deleted the reduce_TestClientWithRequestTimeout_flakiness branch July 19, 2021 14:55
@thaJeztah thaJeztah added this to the 21.xx milestone Jul 19, 2021
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.

3 participants