From cb09dfadba5b24ce6afde8c28e21946550f7c530 Mon Sep 17 00:00:00 2001 From: Guilherme Cassolato Date: Mon, 23 Sep 2024 17:38:00 +0200 Subject: [PATCH] fix workflow test invariable Signed-off-by: Guilherme Cassolato --- controller/workflow_test.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/controller/workflow_test.go b/controller/workflow_test.go index be56cfe..097146a 100644 --- a/controller/workflow_test.go +++ b/controller/workflow_test.go @@ -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")}, }, { @@ -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")}, }, { @@ -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"),