Merge pull request #36021 from yongtang/30897-follow-up

Rename FindUniqueNetwork to FindNetwork
This commit is contained in:
Vincent Demeester
2018-01-16 09:38:16 +01:00
committed by GitHub
10 changed files with 20 additions and 20 deletions

View File

@@ -317,7 +317,7 @@ func TestValidateContainerIsolation(t *testing.T) {
func TestFindNetworkErrorType(t *testing.T) {
d := Daemon{}
_, err := d.FindUniqueNetwork("fakeNet")
_, err := d.FindNetwork("fakeNet")
_, ok := errors.Cause(err).(libnetwork.ErrNoSuchNetwork)
if !errdefs.IsNotFound(err) || !ok {
assert.Fail(t, "The FindNetwork method MUST always return an error that implements the NotFound interface and is ErrNoSuchNetwork")