Skip to content

Commit

Permalink
chore: update test
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Aug 9, 2023
1 parent 600b934 commit 49ada93
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions elton_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit 49ada93

Please sign in to comment.