mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
client/secret: use gotest.tools-style asserts
Signed-off-by: Paweł Gronowski <pawel.gronowski@docker.com>
This commit is contained in:
@@ -95,11 +95,7 @@ func TestSecretList(t *testing.T) {
|
||||
}
|
||||
|
||||
secrets, err := client.SecretList(context.Background(), listCase.options)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
if len(secrets) != 2 {
|
||||
t.Fatalf("expected 2 secrets, got %v", secrets)
|
||||
}
|
||||
assert.NilError(t, err)
|
||||
assert.Check(t, is.Len(secrets, 2))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user