This is an automated email from the ASF dual-hosted git repository. linkinstar pushed a commit to branch dev in repository https://gitbox.apache.org/repos/asf/answer.git
commit 4175b06039e3059b5e6ecf4cc81b2be5a07c52a8 Author: Sonui <m...@sonui.cn> AuthorDate: Mon May 26 00:56:08 2025 +0800 perf(tests): replace panic with os.Exit in TestMain for graceful test termination --- plugin/plugin_test/plugin_main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/plugin_test/plugin_main_test.go b/plugin/plugin_test/plugin_main_test.go index 4f92bebe..add11460 100644 --- a/plugin/plugin_test/plugin_main_test.go +++ b/plugin/plugin_test/plugin_main_test.go @@ -92,7 +92,7 @@ func TestMain(t *testing.M) { log.Info("init test database successfully") if ret := t.Run(); ret != 0 { - panic(ret) + os.Exit(ret) } }