From 758d4d60bb4f5436553281a5770377fd435d3103 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 16 Mar 2019 18:00:06 +0800 Subject: [PATCH] chore: update test token. (#400) --- gorush/notification_fcm_test.go | 6 ++---- gorush/notification_test.go | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/gorush/notification_fcm_test.go b/gorush/notification_fcm_test.go index b49177d..60c4aad 100644 --- a/gorush/notification_fcm_test.go +++ b/gorush/notification_fcm_test.go @@ -76,8 +76,7 @@ func TestPushToAndroidRightTokenForJSONLog(t *testing.T) { } isError := PushToAndroid(req) - // mismatched sender id - assert.True(t, isError) + assert.False(t, isError) } func TestPushToAndroidRightTokenForStringLog(t *testing.T) { @@ -95,8 +94,7 @@ func TestPushToAndroidRightTokenForStringLog(t *testing.T) { } isError := PushToAndroid(req) - // mismatched sender id - assert.True(t, isError) + assert.False(t, isError) } func TestOverwriteAndroidAPIKey(t *testing.T) { diff --git a/gorush/notification_test.go b/gorush/notification_test.go index 64e64e5..68f6481 100644 --- a/gorush/notification_test.go +++ b/gorush/notification_test.go @@ -129,7 +129,7 @@ func TestSyncModeForNotifications(t *testing.T) { count, logs := queueNotification(req) assert.Equal(t, 3, count) - assert.Equal(t, 3, len(logs)) + assert.Equal(t, 2, len(logs)) } func TestSyncModeForTopicNotification(t *testing.T) {