Commit d5e1f3119a
Verified · cmc
internal/hookd/pushshapes_test.go +2 −2
| @@ -174,7 +174,7 @@ func (f *shapeFixture) push(branch, old, sha string) { | ||
| 174 | 174 | // commit included. |
| 175 | 175 | func (f *shapeFixture) finish(status string) { |
| 176 | 176 | for { |
| 177 | b, ok, err := f.st.ClaimBuild([]int64{f.repo.ID}) | |
| 177 | b, ok, err := f.st.ClaimBuild([]int64{f.repo.ID}, true) | |
| 178 | 178 | if err != nil { |
| 179 | 179 | f.t.Fatal(err) |
| 180 | 180 | } |
| @@ -368,7 +368,7 @@ var pushShapes = []pushShape{ | ||
| 368 | 368 | c1 := f.appCommit("more") |
| 369 | 369 | f.push("feat", zeroSHA40, c1) |
| 370 | 370 | for i := 0; i < 2; i++ { |
| 371 | if _, ok, err := f.st.ClaimBuild(nil); err != nil || !ok { | |
| 371 | if _, ok, err := f.st.ClaimBuild(nil, true); err != nil || !ok { | |
| 372 | 372 | f.t.Fatalf("claim: %v ok=%v", err, ok) |
| 373 | 373 | } |
| 374 | 374 | } |