summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-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()
}