summaryrefslogtreecommitdiff
path: root/service/http/fcgi_test.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-28 01:31:08 +0300
committerValery Piashchynski <[email protected]>2020-02-28 01:31:08 +0300
commitc69a026d37a551d64c14c04e36690de63f873320 (patch)
tree9b7b61e4e1b5260f9288cc6c2d53b0d2d15250b1 /service/http/fcgi_test.go
parent75e0092d8aab6033a002ad54bf667be71f45fecf (diff)
Move c.Stop() to end of function, since that goroutine can start after
c.Stop() (there is no order)
Diffstat (limited to 'service/http/fcgi_test.go')
-rw-r--r--service/http/fcgi_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/http/fcgi_test.go b/service/http/fcgi_test.go
index 0cfc6e41..808dedcf 100644
--- a/service/http/fcgi_test.go
+++ b/service/http/fcgi_test.go
@@ -84,7 +84,6 @@ func Test_FCGI_Service_Request_Uri(t *testing.T) {
go func() { assert.NoError(t, c.Serve()) }()
time.Sleep(time.Millisecond * 100)
- defer c.Stop()
fcgiConnFactory := gofast.SimpleConnFactory("tcp", "0.0.0.0:6083")
@@ -102,4 +101,5 @@ func Test_FCGI_Service_Request_Uri(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, 200, w.Result().StatusCode)
assert.Equal(t, "http://site.local/hello-world", string(body))
+ c.Stop()
}