chore(testutil): add testutil.GoleakOptions (#16070)

- Adds `testutil.GoleakOptions` and consolidates existing options to
this location
- Pre-emptively adds required ignore for this Dependabot PR to pass CI
https://github.com/coder/coder/pull/16066
This commit is contained in:
Cian Johnston
2025-01-08 15:38:37 +00:00
committed by GitHub
parent 106b1cd3bc
commit 7b88776403
36 changed files with 60 additions and 43 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ import (
)
func TestMain(m *testing.M) {
goleak.VerifyTestMain(m)
goleak.VerifyTestMain(m, testutil.GoleakOptions...)
}
// NOTE: These tests only work when your default shell is bash for some reason.
+1 -1
View File
@@ -24,7 +24,7 @@ import (
)
func TestMain(m *testing.M) {
goleak.VerifyTestMain(m)
goleak.VerifyTestMain(m, testutil.GoleakOptions...)
}
func TestExecuteBasic(t *testing.T) {
+1 -1
View File
@@ -29,7 +29,7 @@ import (
)
func TestMain(m *testing.M) {
goleak.VerifyTestMain(m)
goleak.VerifyTestMain(m, testutil.GoleakOptions...)
}
func TestNewServer_ServeClient(t *testing.T) {