fix: enable goleak in chatd tests (#26335)

Enable goleak in chatd tests and fix some leaks. Addresses
https://github.com/coder/coder/pull/26109#discussion_r3380039964
This commit is contained in:
Hugo Dutka
2026-06-16 12:35:40 +00:00
committed by GitHub
parent 2716e2181c
commit 4f74a7adee
17 changed files with 237 additions and 25 deletions
+13
View File
@@ -0,0 +1,13 @@
package chatdebug_test
import (
"testing"
"go.uber.org/goleak"
"github.com/coder/coder/v2/testutil"
)
func TestMain(m *testing.M) {
goleak.VerifyTestMain(m, testutil.GoleakOptions...)
}