fix failing stage test on mysql
This commit is contained in:
parent
6c1507e8c6
commit
1e0f028166
2 changed files with 4 additions and 3 deletions
|
@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- endpoint to list builds by branch, by [@bradrydzewski](https://github.com/bradrydzewski). [#1495](https://github.com/drone/drone/issues/1495).
|
||||
- ignore skip comments when cron event, by [@bradrydzewski](https://github.com/bradrydzewski). [#2835](https://github.com/drone/drone/issues/2835).
|
||||
- support for admission extensions, by [@bradrydzewski](https://github.com/bradrydzewski). [#2043](https://github.com/drone/drone/issues/2043).
|
||||
- endpoint to provide link to git resources, by [@bradrydzewski](https://github.com/bradrydzewski). [#1495](https://github.com/drone/drone/issues/1495).
|
||||
- endpoint to provide link to git resources, by [@bradrydzewski](https://github.com/bradrydzewski). [#2843](https://github.com/drone/drone/issues/2843).
|
||||
|
||||
### Fixed
|
||||
- missing cron job name in user interface, by [@bradrydzewski](https://github.com/bradrydzewski).
|
||||
|
|
|
@ -197,8 +197,9 @@ func testStageLocking(store *stageStore, stage *core.Stage) func(t *testing.T) {
|
|||
func testStageListStatus(store *stageStore, build *core.Build) func(t *testing.T) {
|
||||
return func(t *testing.T) {
|
||||
store.db.Update(func(execer db.Execer, binder db.Binder) error {
|
||||
_, err := execer.Exec("DELETE FROM stages")
|
||||
return err
|
||||
execer.Exec("DELETE FROM stages_unfinished")
|
||||
execer.Exec("DELETE FROM stages")
|
||||
return nil
|
||||
})
|
||||
store.Create(noContext, &core.Stage{Number: 1, BuildID: build.ID, Status: core.StatusPending})
|
||||
store.Create(noContext, &core.Stage{Number: 2, BuildID: build.ID, Status: core.StatusRunning})
|
||||
|
|
Loading…
Reference in a new issue