Skip to content

Commit

Permalink
lightning: fix test lightning_checkpoint_chunks
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepymole committed Mar 28, 2022
1 parent 05b9157 commit 9fedebf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions br/pkg/lightning/lightning.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ func (l *Lightning) RunOnceWithOptions(taskCtx context.Context, taskCfg *config.
}

taskCfg.TaskID = time.Now().UnixNano()
failpoint.Inject("SetTaskID", func(val failpoint.Value) {
taskCfg.TaskID = int64(val.(int))
})

return l.run(taskCtx, taskCfg, o)
}
Expand Down

0 comments on commit 9fedebf

Please sign in to comment.