diff options
author | Valery Piashchynski <[email protected]> | 2020-11-24 16:17:41 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-11-24 16:17:41 +0300 |
commit | 863193bd7b21bbb2b30cf8960c83260a79d22a8b (patch) | |
tree | e6de60c46f04180531f5cd176bda595f13f54c32 /plugins/http/tests | |
parent | be4aadb5384fd8b97c927f3ef48383dc5b23b345 (diff) |
exclude tests from golangci
Diffstat (limited to 'plugins/http/tests')
-rw-r--r-- | plugins/http/tests/configs/.rr-http.yaml | 2 | ||||
-rw-r--r-- | plugins/http/tests/http_test.go | 9 |
2 files changed, 5 insertions, 6 deletions
diff --git a/plugins/http/tests/configs/.rr-http.yaml b/plugins/http/tests/configs/.rr-http.yaml index caf7dfe3..3c2ec5a9 100644 --- a/plugins/http/tests/configs/.rr-http.yaml +++ b/plugins/http/tests/configs/.rr-http.yaml @@ -28,7 +28,7 @@ http: key: fixtures/server.key # rootCa: root.crt fcgi: - address: tcp://0.0.0.0:6921 + address: tcp://0.0.0.0:7921 http2: enabled: false h2c: false 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( |