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 TestInvalidRemoteDriver() to check underlying error #42966

Merged
merged 1 commit into from Oct 25, 2021

Conversation

thaJeztah
Copy link
Member

commit b1a3fe4 (#41215) changed how the error was
returned (which is now wrapped), causing the test to fail:

=== RUN   TestInvalidRemoteDriver
    libnetwork_test.go:1289: Did not fail with expected error. Actual error: Plugin does not implement the requested driver: plugin="invalid-network-driver", requested implementation="NetworkDriver"
--- FAIL: TestInvalidRemoteDriver (0.01s)

Changing the test to use errors.Is()

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

commit b1a3fe4 changed how the error was
returned (which is now wrapped), causing the test to fail:

    === RUN   TestInvalidRemoteDriver
        libnetwork_test.go:1289: Did not fail with expected error. Actual error: Plugin does not implement the requested driver: plugin="invalid-network-driver", requested implementation="NetworkDriver"
    --- FAIL: TestInvalidRemoteDriver (0.01s)

Changing the test to use errors.Is()

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

@AkihiroSuda @cpuguy83 PTAL

@thaJeztah
Copy link
Member Author

Failures are unrelated

@thaJeztah thaJeztah merged commit 9aa0b24 into moby:master Oct 25, 2021
@thaJeztah thaJeztah deleted the fix_TestInvalidRemoteDriver branch October 25, 2021 19:52
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