diff --git a/cli/command/registry/login_test.go b/cli/command/registry/login_test.go index 0f1374ddbc..f31ebd1716 100644 --- a/cli/command/registry/login_test.go +++ b/cli/command/registry/login_test.go @@ -166,7 +166,7 @@ func TestRunLogin(t *testing.T) { if tc.inputStoredCred != nil { cred := *tc.inputStoredCred - configfile.GetCredentialsStore(cred.ServerAddress).Store(cred) + assert.NilError(t, configfile.GetCredentialsStore(cred.ServerAddress).Store(cred)) } loginErr := runLogin(cli, tc.inputLoginOption) if tc.expectedErr != "" { diff --git a/cli/command/service/opts_test.go b/cli/command/service/opts_test.go index 6b9b83d186..8c27e9f026 100644 --- a/cli/command/service/opts_test.go +++ b/cli/command/service/opts_test.go @@ -202,9 +202,9 @@ func TestToServiceNetwork(t *testing.T) { } nwo := opts.NetworkOpt{} - nwo.Set("zzz-network") - nwo.Set("mmm-network") - nwo.Set("aaa-network") + assert.NilError(t, nwo.Set("zzz-network")) + assert.NilError(t, nwo.Set("mmm-network")) + assert.NilError(t, nwo.Set("aaa-network")) o := newServiceOptions() o.mode = "replicated"