mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Disable telemetry by default in tests (#3200)
I also noticed we don't have `goleak` enabled for CLI tests, this commit adds it, but commented out. The reason being that we're nowhere near being able to enable it yet. Co-authored-by: Cian Johnston <cian@coder.com>
This commit is contained in:
co-authored by
Cian Johnston
parent
122c6f06d8
commit
d1d89210b8
@@ -1,6 +1,7 @@
|
||||
package cli
|
||||
|
||||
import (
|
||||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
@@ -64,3 +65,9 @@ func Test_formatExamples(t *testing.T) {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
// Replace with goleak.VerifyTestMain(m) when we enable goleak.
|
||||
os.Exit(m.Run())
|
||||
// goleak.VerifyTestMain(m)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user