diff --git a/integration/config/main_test.go b/integration/config/main_test.go index 4c62ec61f0..ebcb82d308 100644 --- a/integration/config/main_test.go +++ b/integration/config/main_test.go @@ -44,7 +44,7 @@ func TestMain(m *testing.M) { } span.End() shutdown(ctx) - os.Exit(m.Run()) + os.Exit(code) } func setupTest(t *testing.T) context.Context { diff --git a/integration/network/macvlan/main_test.go b/integration/network/macvlan/main_test.go index f26f89e1c8..16651b3aa5 100644 --- a/integration/network/macvlan/main_test.go +++ b/integration/network/macvlan/main_test.go @@ -50,5 +50,5 @@ func TestMain(m *testing.M) { span.SetAttributes(attribute.Int("exit", code)) span.End() shutdown(ctx) - os.Exit(m.Run()) + os.Exit(code) } diff --git a/integration/plugin/common/main_test.go b/integration/plugin/common/main_test.go index b2af3e69f4..df896f130a 100644 --- a/integration/plugin/common/main_test.go +++ b/integration/plugin/common/main_test.go @@ -37,7 +37,7 @@ func TestMain(m *testing.M) { } span.SetAttributes(attribute.Int("exit", ec)) shutdown(ctx) - os.Exit(m.Run()) + os.Exit(ec) } func setupTest(t *testing.T) context.Context {