Skip to content

Commit

Permalink
e2e/test_utils: don't use query state after error
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Jan 7, 2024
1 parent 19178f2 commit 89b894d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions flow/e2e/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ func SetupCDCFlowStatusQuery(env *testsuite.TestWorkflowEnvironment,
err = response.Get(&state)
if err != nil {
slog.Error(err.Error())
}

if state.CurrentFlowState == protos.FlowStatus_STATUS_RUNNING {
} else if state.CurrentFlowState == protos.FlowStatus_STATUS_RUNNING {
break
}
} else {
Expand Down Expand Up @@ -171,9 +169,7 @@ func NormalizeFlowCountQuery(env *testsuite.TestWorkflowEnvironment,
err = response.Get(&state)
if err != nil {
slog.Error(err.Error())
}

if len(state.NormalizeFlowStatuses) >= minCount {
} else if len(state.NormalizeFlowStatuses) >= minCount {
break
}
} else {
Expand Down

0 comments on commit 89b894d

Please sign in to comment.