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