Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Samra Belachew committed Mar 1, 2024
1 parent 6454552 commit e44f1a6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ func TestRunPreHooks_Clone(t *testing.T) {
When(whWorkingDir.Clone(log, fixtures.GithubRepo, newPull, events.DefaultWorkspace)).ThenReturn(repoDir, false, nil)
When(whPreWorkflowHookRunner.Run(ctx, pCtx, testHook.RunCommand, repoDir)).ThenReturn(result, errors.New("some error"))

err := wh.RunPreHooks(context.TODO(), cmdCtx)
err := wh.RunPreHooks(ctx, cmdCtx)

Assert(t, err != nil, "error not nil")
Assert(t, *unlockCalled == true, "unlock function called")
Expand Down

0 comments on commit e44f1a6

Please sign in to comment.