mirror of https://github.com/docker/cli.git
unchecked errors
Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
This commit is contained in:
parent
584da37756
commit
e1c0c7979e
|
@ -166,7 +166,7 @@ func TestRunLogin(t *testing.T) {
|
||||||
|
|
||||||
if tc.inputStoredCred != nil {
|
if tc.inputStoredCred != nil {
|
||||||
cred := *tc.inputStoredCred
|
cred := *tc.inputStoredCred
|
||||||
configfile.GetCredentialsStore(cred.ServerAddress).Store(cred)
|
assert.NilError(t, configfile.GetCredentialsStore(cred.ServerAddress).Store(cred))
|
||||||
}
|
}
|
||||||
loginErr := runLogin(cli, tc.inputLoginOption)
|
loginErr := runLogin(cli, tc.inputLoginOption)
|
||||||
if tc.expectedErr != "" {
|
if tc.expectedErr != "" {
|
||||||
|
|
|
@ -202,9 +202,9 @@ func TestToServiceNetwork(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
nwo := opts.NetworkOpt{}
|
nwo := opts.NetworkOpt{}
|
||||||
nwo.Set("zzz-network")
|
assert.NilError(t, nwo.Set("zzz-network"))
|
||||||
nwo.Set("mmm-network")
|
assert.NilError(t, nwo.Set("mmm-network"))
|
||||||
nwo.Set("aaa-network")
|
assert.NilError(t, nwo.Set("aaa-network"))
|
||||||
|
|
||||||
o := newServiceOptions()
|
o := newServiceOptions()
|
||||||
o.mode = "replicated"
|
o.mode = "replicated"
|
||||||
|
|
Loading…
Reference in New Issue