1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

integration/secret: add check for empty list not producing an error

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-08-19 16:04:56 +02:00
parent 632cc7019a
commit 1a7ffe4fe4
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -55,6 +55,10 @@ func TestSecretList(t *testing.T) {
defer c.Close()
ctx := context.Background()
configs, err := c.SecretList(ctx, types.SecretListOptions{})
assert.NilError(t, err)
assert.Check(t, is.Equal(len(configs), 0))
testName0 := "test0_" + t.Name()
testName1 := "test1_" + t.Name()
testNames := []string{testName0, testName1}