Don't run tests twice

It's useless

Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
This commit is contained in:
Djordje Lukic 2023-09-19 11:37:55 +02:00
parent 5d87dc98ea
commit d5425f28ae
No known key found for this signature in database
3 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ func TestMain(m *testing.M) {
} }
span.End() span.End()
shutdown(ctx) shutdown(ctx)
os.Exit(m.Run()) os.Exit(code)
} }
func setupTest(t *testing.T) context.Context { func setupTest(t *testing.T) context.Context {

View file

@ -50,5 +50,5 @@ func TestMain(m *testing.M) {
span.SetAttributes(attribute.Int("exit", code)) span.SetAttributes(attribute.Int("exit", code))
span.End() span.End()
shutdown(ctx) shutdown(ctx)
os.Exit(m.Run()) os.Exit(code)
} }

View file

@ -37,7 +37,7 @@ func TestMain(m *testing.M) {
} }
span.SetAttributes(attribute.Int("exit", ec)) span.SetAttributes(attribute.Int("exit", ec))
shutdown(ctx) shutdown(ctx)
os.Exit(m.Run()) os.Exit(ec)
} }
func setupTest(t *testing.T) context.Context { func setupTest(t *testing.T) context.Context {