update database test to use testify (#12532)
Этот коммит содержится в:
коммит произвёл
Maria A Nunez
родитель
80633ef475
Коммит
c859807b70
@@ -516,7 +516,7 @@ func TestDatabaseStoreSet(t *testing.T) {
|
|||||||
select {
|
select {
|
||||||
case <-called:
|
case <-called:
|
||||||
case <-time.After(5 * time.Second):
|
case <-time.After(5 * time.Second):
|
||||||
t.Fatal("callback should have been called when config written")
|
require.Fail(t, "callback should have been called when config written")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -757,7 +757,7 @@ func TestDatabaseStoreLoad(t *testing.T) {
|
|||||||
select {
|
select {
|
||||||
case <-called:
|
case <-called:
|
||||||
case <-time.After(5 * time.Second):
|
case <-time.After(5 * time.Second):
|
||||||
t.Fatal("callback should have been called when config loaded")
|
require.Fail(t, "callback should have been called when config loaded")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user