💯 remain code coverage

pull/636/head
kiyon 2020-07-18 10:42:22 +08:00
parent 55d0fe1944
commit 86af9e486c
2 changed files with 3 additions and 3 deletions

View File

@ -754,7 +754,7 @@ func Test_App_Listen(t *testing.T) {
utils.AssertEqual(t, nil, app.Shutdown())
}()
utils.AssertEqual(t, nil, app.Listen("4010"))
utils.AssertEqual(t, nil, app.Listen("[::]:4010"))
}
// go test -run Test_App_Listener

View File

@ -28,7 +28,7 @@ func Test_App_Prefork_Child_Process(t *testing.T) {
utils.AssertEqual(t, nil, app.Shutdown())
}()
utils.AssertEqual(t, nil, app.prefork("127.0.0.1:"))
utils.AssertEqual(t, nil, app.prefork("[::]:"))
// Create tls certificate
cer, err := tls.LoadX509KeyPair("./.github/TEST_DATA/ssl.pem", "./.github/TEST_DATA/ssl.key")
@ -57,7 +57,7 @@ func Test_App_Prefork_Master_Process(t *testing.T) {
utils.AssertEqual(t, nil, app.Shutdown())
}()
utils.AssertEqual(t, nil, app.prefork("127.0.0.1:"))
utils.AssertEqual(t, nil, app.prefork(":3000"))
dummyChildCmd = "invalid"