From 891ce971b914933146b7ad0f1bfc6d3ac5108198 Mon Sep 17 00:00:00 2001 From: cola <45722758+xiangpingjiang@users.noreply.github.com> Date: Wed, 20 Dec 2023 13:54:05 +0800 Subject: [PATCH] fix no test cases actually run in controller_revision_test file (#1457) Signed-off-by: pingjiang --- pkg/controller/cloneset/revision/cloneset_revision_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/controller/cloneset/revision/cloneset_revision_test.go b/pkg/controller/cloneset/revision/cloneset_revision_test.go index 7989e221eb..43e7f86a64 100644 --- a/pkg/controller/cloneset/revision/cloneset_revision_test.go +++ b/pkg/controller/cloneset/revision/cloneset_revision_test.go @@ -18,6 +18,7 @@ limitations under the License. package revision import ( + "os" "reflect" "testing" @@ -32,6 +33,8 @@ import ( func TestMain(m *testing.M) { utilruntime.Must(apis.AddToScheme(scheme.Scheme)) + code := m.Run() + os.Exit(code) } func TestCreateApplyRevision(t *testing.T) {