@@ -69,7 +69,7 @@ func TestCleanUpPullUnlockErr(t *testing.T) {
69
69
PullClosedTemplate : & events.PullClosedEventTemplate {},
70
70
}
71
71
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 )
73
73
actualErr := pce .CleanUpPull (testdata .GithubRepo , testdata .Pull )
74
74
Equals (t , "cleaning up locks: err" , actualErr .Error ())
75
75
}
@@ -89,7 +89,7 @@ func TestCleanUpPullNoLocks(t *testing.T) {
89
89
WorkingDir : w ,
90
90
Backend : db ,
91
91
}
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 )
93
93
err = pce .CleanUpPull (testdata .GithubRepo , testdata .Pull )
94
94
Ok (t , err )
95
95
cp .VerifyWasCalled (Never ()).CreateComment (Any [models.Repo ](), Any [int ](), Any [string ](), Any [string ]())
@@ -175,7 +175,7 @@ func TestCleanUpPullComments(t *testing.T) {
175
175
Backend : db ,
176
176
}
177
177
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 )
179
179
err = pce .CleanUpPull (testdata .GithubRepo , testdata .Pull )
180
180
Ok (t , err )
181
181
_ , _ , comment , _ := cp .VerifyWasCalledOnce ().CreateComment (Any [models.Repo ](), Any [int ](), Any [string ](), Any [string ]()).GetCapturedArguments ()
@@ -264,7 +264,7 @@ func TestCleanUpLogStreaming(t *testing.T) {
264
264
Workspace : "default" ,
265
265
},
266
266
}
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 )
268
268
269
269
// Clean up.
270
270
err = pullClosedExecutor .CleanUpPull (testdata .GithubRepo , testdata .Pull )
0 commit comments