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) {