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-03-03 17:42:26 +08:00
|
|
|
var redis cache.Model
|
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)
|
|
|
|
|
}
|