summaryrefslogtreecommitdiff
path: root/service/http
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2020-02-28 01:51:55 +0300
committerValery Piashchynski <[email protected]>2020-02-28 01:51:55 +0300
commit6dd2ea9f38003e9c2e7bb54da20fabbabdd696ed (patch)
treee0f933d6cf8bc2db252a41fa89240e52dfb74aed /service/http
parent4841b41b9a3b08a5c0f44d46c77d98fd6b4b88f5 (diff)
Test_FCGI_Service update
Diffstat (limited to 'service/http')
-rw-r--r--service/http/fcgi_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/service/http/fcgi_test.go b/service/http/fcgi_test.go
index 808dedcf..e68b2e7f 100644
--- a/service/http/fcgi_test.go
+++ b/service/http/fcgi_test.go
@@ -37,8 +37,7 @@ func Test_FCGI_Service_Echo(t *testing.T) {
s.(*Service).Stop()
go func() { assert.NoError(t, c.Serve()) }()
- time.Sleep(time.Millisecond * 100)
- defer c.Stop()
+ time.Sleep(time.Second * 1)
fcgiConnFactory := gofast.SimpleConnFactory("tcp", "0.0.0.0:6082")
@@ -56,6 +55,7 @@ func Test_FCGI_Service_Echo(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, 201, w.Result().StatusCode)
assert.Equal(t, "WORLD", string(body))
+ c.Stop()
}
func Test_FCGI_Service_Request_Uri(t *testing.T) {
@@ -83,7 +83,7 @@ func Test_FCGI_Service_Request_Uri(t *testing.T) {
s.(*Service).Stop()
go func() { assert.NoError(t, c.Serve()) }()
- time.Sleep(time.Millisecond * 100)
+ time.Sleep(time.Second * 1)
fcgiConnFactory := gofast.SimpleConnFactory("tcp", "0.0.0.0:6083")