| commit | 4175b06039e3059b5e6ecf4cc81b2be5a07c52a8 | [log] [tgz] |
|---|---|---|
| author | Sonui <me@sonui.cn> | Mon May 26 00:56:08 2025 +0800 |
| committer | LinkinStars <linkinstar@foxmail.com> | Wed May 28 10:13:32 2025 +0800 |
| tree | d94d747a9f4e74c70bb79c0b717aed72eec7cc83 | |
| parent | 6df436c7183fdbaccdc9b7d6659001d51f0f4ef8 [diff] |
perf(tests): replace panic with os.Exit in TestMain for graceful test termination
diff --git a/plugin/plugin_test/plugin_main_test.go b/plugin/plugin_test/plugin_main_test.go index 4f92beb..add1146 100644 --- a/plugin/plugin_test/plugin_main_test.go +++ b/plugin/plugin_test/plugin_main_test.go
@@ -92,7 +92,7 @@ log.Info("init test database successfully") if ret := t.Run(); ret != 0 { - panic(ret) + os.Exit(ret) } }