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

integration/config: remove check that was already done in TestConfigInspect

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

View file

@ -142,11 +142,7 @@ func TestConfigsCreateAndDelete(t *testing.T) {
testName := "test_config-" + t.Name() testName := "test_config-" + t.Name()
configID := createConfig(ctx, t, c, testName, []byte("TESTINGDATA"), nil) configID := createConfig(ctx, t, c, testName, []byte("TESTINGDATA"), nil)
insp, _, err := c.ConfigInspectWithRaw(ctx, configID) err := c.ConfigRemove(ctx, configID)
assert.NilError(t, err)
assert.Check(t, is.Equal(insp.Spec.Name, testName))
err = c.ConfigRemove(ctx, configID)
assert.NilError(t, err) assert.NilError(t, err)
_, _, err = c.ConfigInspectWithRaw(ctx, configID) _, _, err = c.ConfigInspectWithRaw(ctx, configID)
@ -159,7 +155,7 @@ func TestConfigsCreateAndDelete(t *testing.T) {
"key2": "value2", "key2": "value2",
}) })
insp, _, err = c.ConfigInspectWithRaw(ctx, configID) insp, _, err := c.ConfigInspectWithRaw(ctx, configID)
assert.NilError(t, err) assert.NilError(t, err)
assert.Check(t, is.Equal(insp.Spec.Name, testName)) assert.Check(t, is.Equal(insp.Spec.Name, testName))
assert.Check(t, is.Equal(len(insp.Spec.Labels), 2)) assert.Check(t, is.Equal(len(insp.Spec.Labels), 2))