From d5425f28ae37ce4e1a8ac4e742102b0425b3272c Mon Sep 17 00:00:00 2001 From: Djordje Lukic Date: Tue, 19 Sep 2023 11:37:55 +0200 Subject: [PATCH] Don't run tests twice It's useless Signed-off-by: Djordje Lukic --- integration/config/main_test.go | 2 +- integration/network/macvlan/main_test.go | 2 +- integration/plugin/common/main_test.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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 {