mirror of
https://github.com/moby/moby.git
synced 2026-07-13 19:12:11 +00:00
libnetwork: TestInvalidRemoteDriver: use gotest.tools for error assertions
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -901,13 +901,7 @@ func TestInvalidRemoteDriver(t *testing.T) {
|
||||
|
||||
_, err = ctrlr.NewNetwork("invalid-network-driver", "dummy", "",
|
||||
libnetwork.NetworkOptionGeneric(getEmptyGenericOption()))
|
||||
if err == nil {
|
||||
t.Fatal("Expected to fail. But instead succeeded")
|
||||
}
|
||||
|
||||
if !errors.Is(err, plugins.ErrNotImplements) {
|
||||
t.Fatalf("Did not fail with expected error. Actual error: %v", err)
|
||||
}
|
||||
assert.Check(t, is.ErrorIs(err, plugins.ErrNotImplements))
|
||||
}
|
||||
|
||||
func TestValidRemoteDriver(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user