From 53bd7a73a4c92444fbbe19b138bf2e2f8f03af8f Mon Sep 17 00:00:00 2001 From: Ibrahim Serdar Acikgoz Date: Wed, 5 Jun 2024 18:52:38 +0200 Subject: [PATCH] [MM-58086] platform/busy_test.go: increase test busy duration time (#27082) --- server/channels/app/platform/busy_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/channels/app/platform/busy_test.go b/server/channels/app/platform/busy_test.go index 536f97a27a..3e54bfe92b 100644 --- a/server/channels/app/platform/busy_test.go +++ b/server/channels/app/platform/busy_test.go @@ -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)