From 9da0d8e2438a83b981e4ccf2f8e4b93d55ff07fe Mon Sep 17 00:00:00 2001 From: tennix Date: Wed, 27 Feb 2019 21:52:06 +0800 Subject: [PATCH] tiny fix --- tests/e2e/test_helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/test_helper.go b/tests/e2e/test_helper.go index 98ee8e18069..110d628dbe9 100644 --- a/tests/e2e/test_helper.go +++ b/tests/e2e/test_helper.go @@ -101,7 +101,7 @@ func clearOperator() error { return err } err = kubeCli.CoreV1().Secrets(fixture.ns).Delete(fixture.ns+"-"+fixture.clusterName, nil) - if err != nil && apierrs.IsNotFound(err) { + if err != nil && !apierrs.IsNotFound(err) { return err } }