Files
open-im-server/internal/push/offlinepush/fcm/push_test.go
T

17 lines
430 B
Go
Raw Normal View History

2022-07-29 15:47:09 +08:00
package fcm
import (
2023-02-22 19:51:14 +08:00
"context"
2023-03-16 10:46:06 +08:00
"github.com/OpenIMSDK/Open-IM-Server/internal/push/offlinepush"
"github.com/OpenIMSDK/Open-IM-Server/pkg/common/db/cache"
2022-07-29 15:47:09 +08:00
"github.com/stretchr/testify/assert"
"testing"
)
func Test_Push(t *testing.T) {
2023-05-04 12:11:29 +08:00
var redis cache.MsgModel
2023-02-22 19:51:14 +08:00
offlinePusher := NewClient(redis)
2023-03-03 19:59:10 +08:00
err := offlinePusher.Push(context.Background(), []string{"userID1"}, "test", "test", &offlinepush.Opts{})
2022-07-29 15:47:09 +08:00
assert.Nil(t, err)
}