From e1c0c7979e018dcfa33df53806e0707fab35dadf Mon Sep 17 00:00:00 2001 From: Silvin Lubecki Date: Tue, 2 Apr 2019 13:03:49 +0200 Subject: [PATCH] unchecked errors Signed-off-by: Silvin Lubecki --- cli/command/registry/login_test.go | 2 +- cli/command/service/opts_test.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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"