From 859a24d049bd1986094ea8ade2322329fa7fe22d Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 2 May 2016 11:05:32 +0800 Subject: [PATCH] fix gofmt. Signed-off-by: Bo-Yi Wu --- gorush/notification_test.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/gorush/notification_test.go b/gorush/notification_test.go index d4af358..bf86965 100644 --- a/gorush/notification_test.go +++ b/gorush/notification_test.go @@ -470,7 +470,7 @@ func TestGCMMessage(t *testing.T) { // the message must specify at least one registration ID req = PushNotification{ Message: "Test", - Tokens: []string{}, + Tokens: []string{}, } err = CheckMessage(req) @@ -479,7 +479,7 @@ func TestGCMMessage(t *testing.T) { // the token must not be empty req = PushNotification{ Message: "Test", - Tokens: []string{""}, + Tokens: []string{""}, } err = CheckMessage(req) @@ -487,9 +487,9 @@ func TestGCMMessage(t *testing.T) { // the message may specify at most 1000 registration IDs req = PushNotification{ - Message: "Test", + Message: "Test", Platform: PlatFormAndroid, - Tokens: make([]string, 1001), + Tokens: make([]string, 1001), } err = CheckMessage(req) @@ -498,9 +498,9 @@ func TestGCMMessage(t *testing.T) { // the message's TimeToLive field must be an integer // between 0 and 2419200 (4 weeks) req = PushNotification{ - Message: "Test", - Platform: PlatFormAndroid, - Tokens: []string{"XXXXXXXXX"}, + Message: "Test", + Platform: PlatFormAndroid, + Tokens: []string{"XXXXXXXXX"}, TimeToLive: 2419201, } @@ -509,9 +509,9 @@ func TestGCMMessage(t *testing.T) { // Pass req = PushNotification{ - Message: "Test", - Platform: PlatFormAndroid, - Tokens: []string{"XXXXXXXXX"}, + Message: "Test", + Platform: PlatFormAndroid, + Tokens: []string{"XXXXXXXXX"}, TimeToLive: 86400, } @@ -526,9 +526,9 @@ func TestCheckAndroidMessage(t *testing.T) { PushConf.Android.APIKey = os.Getenv("ANDROID_API_KEY") req := PushNotification{ - Tokens: []string{"aaaaaa", "bbbbb"}, - Platform: PlatFormAndroid, - Message: "Welcome", + Tokens: []string{"aaaaaa", "bbbbb"}, + Platform: PlatFormAndroid, + Message: "Welcome", TimeToLive: 2419201, }