mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
# Conflicts: # internal/rpc/msg/delete.go # pkg/common/db/controller/msg.go # pkg/common/db/table/unrelation/extend_msg_set.go
17 lines
353 B
Go
17 lines
353 B
Go
package fcm
|
|
|
|
import (
|
|
"OpenIM/internal/push"
|
|
"OpenIM/pkg/common/db/cache"
|
|
"context"
|
|
"github.com/stretchr/testify/assert"
|
|
"testing"
|
|
)
|
|
|
|
func Test_Push(t *testing.T) {
|
|
var redis cache.MsgCache
|
|
offlinePusher := NewClient(redis)
|
|
err := offlinePusher.Push(context.Background(), []string{"userID1"}, "test", "test", &push.Opts{})
|
|
assert.Nil(t, err)
|
|
}
|