单测里面使用 log.Fatal 会使得单测直接通过
alpha-baby opened this issue · 3 comments
alpha-baby commented
dubbo-go-hessian2/decode_test.go
Line 84 in 7231dc5
func TestDemo(t *testing.T) {
log.Fatal()
t.Errorf("unit test fail")
}
这个例子就直接让单测通过了
AlexStocks commented
@wongoo after we merge your latest pr, could we close this issue?
tiltwind commented
In fact, the unit test will fail for process exit.
func TestDemo(t *testing.T) {
log.Fatal()
t.Errorf("unit test fail")
}