From edf924b37bcdad14eb31014c571ab58720aa178f Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Thu, 17 Dec 2020 11:13:21 +0300 Subject: Add time to finish reload_plugin_test with 3k files --- plugins/reload/tests/reload_plugin_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/reload/tests/reload_plugin_test.go b/plugins/reload/tests/reload_plugin_test.go index 8fb9474f..d2fad28d 100644 --- a/plugins/reload/tests/reload_plugin_test.go +++ b/plugins/reload/tests/reload_plugin_test.go @@ -386,7 +386,7 @@ func TestReloadCopy3k(t *testing.T) { wg := &sync.WaitGroup{} wg.Add(1) - tt := time.NewTimer(time.Second * 180) + tt := time.NewTimer(time.Second * 220) go func() { defer wg.Done() @@ -429,7 +429,7 @@ func TestReloadCopy3k(t *testing.T) { t.Run("ReloadMake3kFiles", reloadMake3kFiles) ttt := time.Now() t.Run("ReloadCopyFiles", reloadCopyFiles) - if time.Since(ttt).Seconds() > 100 { + if time.Since(ttt).Seconds() > 120 { t.Fatal("spend too much time on copy") } -- cgit v1.2.3