diff options
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( |