Merge pull request #46512 from rumpl/run-once

Don't run tests twice
This commit is contained in:
Paweł Gronowski 2023-09-19 12:56:22 +02:00 committed by GitHub
commit cf5657d4bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -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 {

View file

@ -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)
}

View file

@ -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 {