func setTestConfig() {
	conf := make(map[string]interface{})
	conf["app.gcm"] = "arn:aws:sns:us-east-1:0000000000:app/GCM/foo_gcm"
	conf["app.apns"] = "arn:aws:sns:us-east-1:0000000000:app/GCM/foo_apns"
	conf["app.apns_sandbox"] = "arn:aws:sns:us-east-1:0000000000:app/GCM/foo_apns"
	conf["app.production"] = false
	c := &testConfig{conf}
	config.SetConfig(c)
}
Beispiel #2
0
func init() {
	config.SetConfig(NewConfig())
}