From 49ada93923c4533e777f423286f61a51d6d02323 Mon Sep 17 00:00:00 2001 From: vicanso Date: Wed, 9 Aug 2023 20:18:58 +0800 Subject: [PATCH] chore: update test --- elton_test.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/elton_test.go b/elton_test.go index 1f7ca4f..fd37b74 100644 --- a/elton_test.go +++ b/elton_test.go @@ -614,11 +614,8 @@ func TestMain(m *testing.M) { if rc == 0 && testing.CoverMode() != "" { c := testing.Coverage() // TODO 后续处理 - // go 1.20获取到Coverage为0 - if c != 0 && c < 0.9 { - fmt.Println("Tests passed but coverage failed at", c) - rc = -1 - } + // >=go 1.20获取到Coverage有误 + fmt.Println(c) } os.Exit(rc) }