mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #42966 from thaJeztah/fix_TestInvalidRemoteDriver
fix TestInvalidRemoteDriver() to check underlying error
This commit is contained in:
commit
9aa0b24dcf
1 changed files with 2 additions and 1 deletions
|
@ -4,6 +4,7 @@
|
|||
package libnetwork_test
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"net"
|
||||
"net/http"
|
||||
|
@ -1285,7 +1286,7 @@ func TestInvalidRemoteDriver(t *testing.T) {
|
|||
t.Fatal("Expected to fail. But instead succeeded")
|
||||
}
|
||||
|
||||
if err != plugins.ErrNotImplements {
|
||||
if !errors.Is(err, plugins.ErrNotImplements) {
|
||||
t.Fatalf("Did not fail with expected error. Actual error: %v", err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue