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

17 lines
369 B
Go
Raw Normal View History

2022-07-29 15:47:09 +08:00
package fcm
import (
2023-03-03 19:59:10 +08:00
"OpenIM/internal/push/offlinepush"
2023-02-23 19:15:30 +08:00
"OpenIM/pkg/common/db/cache"
2023-02-22 19:51:14 +08:00
"context"
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)
}