You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Open-IM-Server/internal/push/offlinepush/fcm/push_test.go

17 lines
369 B

2 years ago
package fcm
import (
2 years ago
"OpenIM/internal/push/offlinepush"
2 years ago
"OpenIM/pkg/common/db/cache"
2 years ago
"context"
2 years ago
"github.com/stretchr/testify/assert"
"testing"
)
func Test_Push(t *testing.T) {
2 years ago
var redis cache.Model
2 years ago
offlinePusher := NewClient(redis)
2 years ago
err := offlinePusher.Push(context.Background(), []string{"userID1"}, "test", "test", &offlinepush.Opts{})
2 years ago
assert.Nil(t, err)
}