From a8c80738e5fc2e147630f853ea5c31be89519a3f Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Mon, 18 Jan 2021 21:52:27 +0300 Subject: Add a little delay to the TestHTTPNoConfigSection test --- tests/plugins/http/http_plugin_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/plugins') diff --git a/tests/plugins/http/http_plugin_test.go b/tests/plugins/http/http_plugin_test.go index 356e7549..3aa0f57a 100644 --- a/tests/plugins/http/http_plugin_test.go +++ b/tests/plugins/http/http_plugin_test.go @@ -139,7 +139,6 @@ func TestHTTPNoConfigSection(t *testing.T) { wg.Add(1) stopCh := make(chan struct{}, 1) - go func() { defer wg.Done() for { @@ -167,6 +166,7 @@ func TestHTTPNoConfigSection(t *testing.T) { } }() + time.Sleep(time.Second * 2) stopCh <- struct{}{} wg.Wait() } -- cgit v1.2.3