From a723f7351d5ca91115a5f4e5fd973577c25bb308 Mon Sep 17 00:00:00 2001 From: Daniel Nephin Date: Tue, 6 Mar 2018 15:49:00 -0500 Subject: [PATCH] manual clean of asserts Signed-off-by: Daniel Nephin (cherry picked from commit f21276575f2679793a0544f40fc518763b0b80a8) Signed-off-by: Sebastiaan van Stijn --- components/cli/cli/command/trust/sign_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/cli/cli/command/trust/sign_test.go b/components/cli/cli/command/trust/sign_test.go index e8eb168b8e..514abf2869 100644 --- a/components/cli/cli/command/trust/sign_test.go +++ b/components/cli/cli/command/trust/sign_test.go @@ -285,7 +285,7 @@ func TestSignCommandChangeListIsCleanedOnError(t *testing.T) { cmd.SetOutput(ioutil.Discard) err = cmd.Execute() - assert.Assert(t, is.ErrorContains(err, "")) + assert.Assert(t, err != nil) notaryRepo, err := client.NewFileCachedRepository(tmpDir, "docker.io/library/ubuntu", "https://localhost", nil, passphrase.ConstantRetriever(passwd), trustpinning.TrustPinConfig{}) assert.NilError(t, err)