This commit is contained in:
Christopher Homberger
2026-02-22 21:12:25 +01:00
parent a27473e6a8
commit bffc600775
17 changed files with 38 additions and 38 deletions

View File

@@ -21,7 +21,7 @@ func TestNewWorkflow(t *testing.T) {
// error case
errorWorkflow := NewErrorExecutor(errors.New("test error"))
assert.Error(errorWorkflow(ctx))
require.Error(t, errorWorkflow(ctx))
// multiple success case
runcount := 0

View File

@@ -213,7 +213,7 @@ func TestGitCloneExecutor(t *testing.T) {
err := clone(context.Background())
if tt.Err != nil {
assert.Error(t, err)
require.Error(t, err)
assert.Equal(t, tt.Err, err)
} else {
require.NoError(t, err)