Skip to content

Commit 34cc196

Browse files
committed
fix test
1 parent 0662f5b commit 34cc196

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/events/pull_closed_executor_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func TestCleanUpPullUnlockErr(t *testing.T) {
6969
PullClosedTemplate: &events.PullClosedEventTemplate{},
7070
}
7171
err = errors.New("err")
72-
When(l.UnlockByPull(testdata.GithubRepo.FullName, testdata.Pull.Num, true)).ThenReturn(nil, nil, err)
72+
When(l.UnlockByPull(testdata.GithubRepo.FullName, testdata.Pull.Num)).ThenReturn(nil, nil, err)
7373
actualErr := pce.CleanUpPull(testdata.GithubRepo, testdata.Pull)
7474
Equals(t, "cleaning up locks: err", actualErr.Error())
7575
}
@@ -89,7 +89,7 @@ func TestCleanUpPullNoLocks(t *testing.T) {
8989
WorkingDir: w,
9090
Backend: db,
9191
}
92-
When(l.UnlockByPull(testdata.GithubRepo.FullName, testdata.Pull.Num, true)).ThenReturn(nil, nil, nil)
92+
When(l.UnlockByPull(testdata.GithubRepo.FullName, testdata.Pull.Num)).ThenReturn(nil, nil, nil)
9393
err = pce.CleanUpPull(testdata.GithubRepo, testdata.Pull)
9494
Ok(t, err)
9595
cp.VerifyWasCalled(Never()).CreateComment(Any[models.Repo](), Any[int](), Any[string](), Any[string]())
@@ -175,7 +175,7 @@ func TestCleanUpPullComments(t *testing.T) {
175175
Backend: db,
176176
}
177177
t.Log("testing: " + c.Description)
178-
When(l.UnlockByPull(testdata.GithubRepo.FullName, testdata.Pull.Num, true)).ThenReturn(c.Locks, nil, nil)
178+
When(l.UnlockByPull(testdata.GithubRepo.FullName, testdata.Pull.Num)).ThenReturn(c.Locks, nil, nil)
179179
err = pce.CleanUpPull(testdata.GithubRepo, testdata.Pull)
180180
Ok(t, err)
181181
_, _, comment, _ := cp.VerifyWasCalledOnce().CreateComment(Any[models.Repo](), Any[int](), Any[string](), Any[string]()).GetCapturedArguments()
@@ -264,7 +264,7 @@ func TestCleanUpLogStreaming(t *testing.T) {
264264
Workspace: "default",
265265
},
266266
}
267-
When(locker.UnlockByPull(testdata.GithubRepo.FullName, testdata.Pull.Num, true)).ThenReturn(locks, nil, nil)
267+
When(locker.UnlockByPull(testdata.GithubRepo.FullName, testdata.Pull.Num)).ThenReturn(locks, nil, nil)
268268

269269
// Clean up.
270270
err = pullClosedExecutor.CleanUpPull(testdata.GithubRepo, testdata.Pull)

0 commit comments

Comments
 (0)