From 863193bd7b21bbb2b30cf8960c83260a79d22a8b Mon Sep 17 00:00:00 2001 From: Valery Piashchynski Date: Tue, 24 Nov 2020 16:17:41 +0300 Subject: exclude tests from golangci --- plugins/http/tests/http_test.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins/http/tests/http_test.go') diff --git a/plugins/http/tests/http_test.go b/plugins/http/tests/http_test.go index 47ad0e51..d5db1896 100644 --- a/plugins/http/tests/http_test.go +++ b/plugins/http/tests/http_test.go @@ -43,7 +43,6 @@ func TestHTTPInit(t *testing.T) { err = cont.RegisterAll( cfg, - &rpcPlugin.Plugin{}, &logger.ZapLogger{}, &server.Plugin{}, &httpPlugin.Plugin{}, @@ -63,8 +62,9 @@ func TestHTTPInit(t *testing.T) { wg := &sync.WaitGroup{} wg.Add(1) + go func() { - tt := time.NewTimer(time.Second * 2) + tt := time.NewTimer(time.Second * 5) defer wg.Done() for { select { @@ -403,7 +403,6 @@ func TestFastCGI_RequestUri(t *testing.T) { err = cont.RegisterAll( cfg, - &rpcPlugin.Plugin{}, &logger.ZapLogger{}, &server.Plugin{}, &httpPlugin.Plugin{}, @@ -451,11 +450,11 @@ func TestFastCGI_RequestUri(t *testing.T) { } }() - t.Run("FastCGIServiceRequestUri", fcgiReqUri) + t.Run("FastCGIServiceRequestUri", fcgiReqURI) wg.Wait() } -func fcgiReqUri(t *testing.T) { +func fcgiReqURI(t *testing.T) { fcgiConnFactory := gofast.SimpleConnFactory("tcp", "0.0.0.0:6921") fcgiHandler := gofast.NewHandler( -- cgit v1.2.3