migrate memory_test to use testify (#12531)
Этот коммит содержится в:
коммит произвёл
Ben Schumacher
родитель
cc82cc990e
Коммит
013a81a33d
@@ -218,7 +218,7 @@ func TestMemoryStoreSet(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")
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -271,7 +271,7 @@ func TestMemoryStoreLoad(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