File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -182,7 +182,7 @@ func TestPullRequest_UpdateCols(t *testing.T) {
182
182
BaseBranch : "baseBranch" ,
183
183
HeadBranch : "headBranch" ,
184
184
}
185
- pr .UpdateCols ("head_branch" )
185
+ assert . NoError ( t , pr .UpdateCols ("head_branch" ) )
186
186
187
187
pr = AssertExistsAndLoadBean (t , & PullRequest {ID : 1 }).(* PullRequest )
188
188
assert .Equal (t , "master" , pr .BaseBranch )
Original file line number Diff line number Diff line change @@ -201,7 +201,9 @@ func TestPullRequests(ctx context.Context) {
201
201
} else if err = TestPatch (pr ); err != nil {
202
202
log .Error ("testPatch[%d]: %v" , pr .ID , err )
203
203
pr .Status = models .PullRequestStatusError
204
- pr .UpdateCols ("status" )
204
+ if err := pr .UpdateCols ("status" ); err != nil {
205
+ log .Error ("update pr [%d] status to PullRequestStatusError failed: %v" , pr .ID , err )
206
+ }
205
207
continue
206
208
}
207
209
checkAndUpdateStatus (pr )
You can’t perform that action at this time.
0 commit comments