Skip to content

Commit

Permalink
fix no test cases actually run in controller_revision_test file (open…
Browse files Browse the repository at this point in the history
…kruise#1457)

Signed-off-by: pingjiang <xiangpingjiang1998@gmail.com>
  • Loading branch information
xiangpingjiang authored Dec 20, 2023
1 parent 1f7f06f commit 891ce97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/controller/cloneset/revision/cloneset_revision_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ limitations under the License.
package revision

import (
"os"
"reflect"
"testing"

Expand All @@ -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) {
Expand Down

0 comments on commit 891ce97

Please sign in to comment.