Skip to content

Commit

Permalink
fix: correct error message in mustPerformUpdate function and update t…
Browse files Browse the repository at this point in the history
…est assertions

Signed-off-by: Rohan <[email protected]>
  • Loading branch information
RohanMishra315 committed Dec 25, 2024
1 parent 0d63f57 commit f55810a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/directives/argocd_updater_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,8 @@ func Test_argoCDUpdater_mustPerformUpdate(t *testing.T) {
}
},
assertions: func(t *testing.T, phase argocd.OperationPhase, mustUpdate bool, err error) {
require.ErrorContains(t, err, "current operation was not initiated by")
require.ErrorContains(t, err, "current operation was initiated by")
require.ErrorContains(t, err, "and not by")
require.ErrorContains(t, err, "waiting for operation to complete")
require.Equal(t, argocd.OperationRunning, phase)
require.False(t, mustUpdate)
Expand Down

0 comments on commit f55810a

Please sign in to comment.