apache/dubbo-go-hessian2

单测里面使用 log.Fatal 会使得单测直接通过

alpha-baby opened this issue · 3 comments

log.Fatal(cmd.Args, err)

func TestDemo(t *testing.T) {
	log.Fatal()
	t.Errorf("unit test fail")
}

这个例子就直接让单测通过了

@wongoo after we merge your latest pr, could we close this issue?

In fact, the unit test will fail for process exit.

func TestDemo(t *testing.T) {
	log.Fatal()
	t.Errorf("unit test fail")
}

@wongoo after we merge your latest pr, could we close this issue?

I think we can close it .