package api import ( "os" "testing" ) func TestMain(m *testing.M) { if os.Getenv("MONGO_URI") == "" { _ = os.Setenv("MONGO_URI", "mongodb://api-test-mongo.example:27017") } os.Exit(m.Run()) }