Skip to content

Commit

Permalink
fix workflow test invariable
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Cassolato <[email protected]>
  • Loading branch information
guicassolato committed Sep 23, 2024
1 parent 233a4fd commit cb09dfa
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions controller/workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ func TestWorkflow(t *testing.T) {
Tasks: []ReconcileFunc{task1WithError, task2},
Postcondition: postcondition,
},
expectedTask1Called: true,
expectedTask2Called: true,
expectedPreconditionCalled: false,
expectedTask1Called: true,
expectedTask2Called: true,
expectedPostconditionCalled: false,
possibleErrs: []error{fmt.Errorf("task1 error")},
},
{
Expand All @@ -100,9 +100,9 @@ func TestWorkflow(t *testing.T) {
Tasks: []ReconcileFunc{task1, task2WithError},
Postcondition: postcondition,
},
expectedTask1Called: true,
expectedTask2Called: true,
expectedPreconditionCalled: false,
expectedTask1Called: true,
expectedTask2Called: true,
expectedPostconditionCalled: false,
possibleErrs: []error{fmt.Errorf("task2 error")},
},
{
Expand All @@ -111,9 +111,9 @@ func TestWorkflow(t *testing.T) {
Tasks: []ReconcileFunc{task1WithError, task2WithError},
Postcondition: postcondition,
},
expectedTask1Called: true,
expectedTask2Called: true,
expectedPreconditionCalled: false,
expectedTask1Called: true,
expectedTask2Called: true,
expectedPostconditionCalled: false,
possibleErrs: []error{
fmt.Errorf("task1 error"),
fmt.Errorf("task2 error"),
Expand Down

0 comments on commit cb09dfa

Please sign in to comment.