2022-07-29 15:47:09 +08:00
|
|
|
package fcm
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"Open_IM/internal/push"
|
2023-02-22 19:51:14 +08:00
|
|
|
"Open_IM/pkg/common/db/cache"
|
|
|
|
|
"context"
|
2022-07-29 15:47:09 +08:00
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
|
"testing"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func Test_Push(t *testing.T) {
|
2023-02-23 18:17:17 +08:00
|
|
|
var redis cache.MsgCache
|
2023-02-22 19:51:14 +08:00
|
|
|
offlinePusher := NewClient(redis)
|
|
|
|
|
err := offlinePusher.Push(context.Background(), []string{"userID1"}, "test", "test", &push.Opts{})
|
2022-07-29 15:47:09 +08:00
|
|
|
assert.Nil(t, err)
|
|
|
|
|
}
|