Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Nov 24, 2023
1 parent 1b67946 commit f40f62f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ func Test_launch(t *testing.T) {

plgn := newPluginWithProperties(webapi.PluginConfig{})
plgn.OnCreate(ctx, tCtx).Return("", nil, fmt.Errorf("error creating"))
_, _, err := launch(ctx, plgn, tCtx, c, &s)
assert.Error(t, err)
_, phase, err := launch(ctx, plgn, tCtx, c, &s)
assert.Nil(t, err)
assert.Equal(t, core.PhasePermanentFailure, phase.Phase())
})

t.Run("Failed to cache", func(t *testing.T) {
Expand Down

0 comments on commit f40f62f

Please sign in to comment.