Browse Source

修改测试bug

yjp 1 year ago
parent
commit
727cc99548
1 changed files with 2 additions and 2 deletions
  1. 2 2
      test/workflow_test.go

+ 2 - 2
test/workflow_test.go

@@ -273,7 +273,7 @@ func TestStopWorkflow(t *testing.T) {
 		Namespace: namespace,
 		Name:      workflowName,
 	}, func(doneToken *client.WatchWorkflowDoneToken, wf *v1alpha1.Workflow) {
-		if wf.Status.Phase != "Running" {
+		if wf.Status.Phase == "Running" {
 			return
 		}
 
@@ -322,7 +322,7 @@ func TestTerminateWorkflow(t *testing.T) {
 		Namespace: namespace,
 		Name:      workflowName,
 	}, func(doneToken *client.WatchWorkflowDoneToken, wf *v1alpha1.Workflow) {
-		if wf.Status.Phase != "Running" {
+		if wf.Status.Phase == "Running" {
 			return
 		}