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

client/request.go:157:8: SA1019: err.Temporary is deprecated (staticcheck) #43202

Merged
merged 1 commit into from
Feb 8, 2022

Conversation

thaJeztah
Copy link
Member

relates to #43194 #43194 (comment)

It's deprecated in Go 1.18:

client/request.go:157:8: SA1019: err.Temporary is deprecated: Temporary errors are not well-defined. Most "temporary" errors are timeouts, and the few exceptions are surprising. Do not use this method. (staticcheck)
    if !err.Temporary() {
        ^

…heck)

It's deprecated in Go 1.18:

    client/request.go:157:8: SA1019: err.Temporary is deprecated: Temporary errors are not well-defined. Most "temporary" errors are timeouts, and the few exceptions are surprising. Do not use this method. (staticcheck)
        if !err.Temporary() {
            ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Member Author

Flaky test, or could this be related to the change?

=== RUN   TestWaitNonBlocked/wait-nonblocking-exit-0
=== PAUSE TestWaitNonBlocked/wait-nonblocking-exit-0
=== CONT  TestWaitNonBlocked/wait-nonblocking-exit-0
=== CONT  TestWaitNonBlocked/wait-nonblocking-exit-0
    wait_test.go:42: assertion failed: error is not nil: Error response from daemon: hcsshim::PrepareLayer - failed failed in Win32: The device is not ready. (0x15)
    --- FAIL: TestWaitNonBlocked/wait-nonblocking-exit-0 (60.17s)

@thaJeztah
Copy link
Member Author

Failure on Windows is a known flaky test TestStartReturnCorrectExitCode (#38521)

=== RUN   TestDockerSuite/TestStartReturnCorrectExitCode
    docker_cli_start_test.go:209: assertion failed: expected an error, got nil
    --- FAIL: TestDockerSuite/TestStartReturnCorrectExitCode (10.22s)

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.

None yet

3 participants