PLT-7759: Make GetNewestJobByStatusAndType not fail when no jobs match. (#7540)
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
76bd1bb212
Коммит
078467ee96
@@ -275,6 +275,10 @@ func TestJobStoreGetNewestJobByStatusAndType(t *testing.T) {
|
||||
result := <-ss.Job().GetNewestJobByStatusAndType(status1, jobType1)
|
||||
assert.Nil(t, result.Err)
|
||||
assert.EqualValues(t, jobs[0].Id, result.Data.(*model.Job).Id)
|
||||
|
||||
result = <-ss.Job().GetNewestJobByStatusAndType(model.NewId(), model.NewId())
|
||||
assert.Nil(t, result.Err)
|
||||
assert.Nil(t, result.Data.(*model.Job))
|
||||
}
|
||||
|
||||
func TestJobStoreGetCountByStatusAndType(t *testing.T) {
|
||||
|
||||
Ссылка в новой задаче
Block a user