[MM-58086] platform/busy_test.go: increase test busy duration time (#27082)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
7b2c314448
Коммит
53bd7a73a4
@@ -24,11 +24,11 @@ func TestBusySet(t *testing.T) {
|
||||
|
||||
require.False(t, busy.IsBusy())
|
||||
|
||||
busy.Set(time.Millisecond * 500)
|
||||
busy.Set(5 * time.Second)
|
||||
require.True(t, busy.IsBusy())
|
||||
require.True(t, compareBusyState(t, busy, cluster.Busy))
|
||||
|
||||
// should automatically expire after 500ms.
|
||||
// should automatically expire after 5s.
|
||||
require.Eventually(t, isNotBusy, time.Second*15, time.Millisecond*100)
|
||||
// allow a moment for cluster to sync.
|
||||
require.Eventually(t, func() bool { return compareBusyState(t, busy, cluster.Busy) }, time.Second*15, time.Millisecond*20)
|
||||
|
||||
Ссылка в новой задаче
Block a user