From 86af9e486c76600219129d3e83750afa25792d37 Mon Sep 17 00:00:00 2001 From: kiyon Date: Sat, 18 Jul 2020 10:42:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=AF=20remain=20code=20coverage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_test.go | 2 +- prefork_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app_test.go b/app_test.go index ed213b08..a221a117 100644 --- a/app_test.go +++ b/app_test.go @@ -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 diff --git a/prefork_test.go b/prefork_test.go index 201226a3..d9553c97 100644 --- a/prefork_test.go +++ b/prefork_test.go @@ -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"