summaryrefslogtreecommitdiff
path: root/tests/plugins/http
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-01-18 21:52:27 +0300
committerValery Piashchynski <[email protected]>2021-01-18 21:52:27 +0300
commita8c80738e5fc2e147630f853ea5c31be89519a3f (patch)
tree5f6cc008ce3f0a3f631c8e963e170688c5992a15 /tests/plugins/http
parent7e5d09e30986f7823b591c58eb858f100382b81f (diff)
Add a little delay to the TestHTTPNoConfigSection test
Diffstat (limited to 'tests/plugins/http')
-rw-r--r--tests/plugins/http/http_plugin_test.go2
1 files changed, 1 insertions, 1 deletions
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()
}