diff options
author | Valery Piashchynski <[email protected]> | 2020-02-28 01:31:08 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-02-28 01:31:08 +0300 |
commit | c69a026d37a551d64c14c04e36690de63f873320 (patch) | |
tree | 9b7b61e4e1b5260f9288cc6c2d53b0d2d15250b1 /service | |
parent | 75e0092d8aab6033a002ad54bf667be71f45fecf (diff) |
Move c.Stop() to end of function, since that goroutine can start after
c.Stop() (there is no order)
Diffstat (limited to 'service')
-rw-r--r-- | service/http/fcgi_test.go | 2 |
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() } |