yjp před 1 rokem
rodič
revize
727cc99548
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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
 		}