mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
add test file
This commit is contained in:
parent
9ed6afd836
commit
6def5bd3cf
@ -126,6 +126,13 @@ func Test_SetFcmToken(t *testing.T) {
|
|||||||
err := DB.SetFcmToken(uid, platformID, token, 0)
|
err := DB.SetFcmToken(uid, platformID, token, 0)
|
||||||
assert.Nil(t, err)
|
assert.Nil(t, err)
|
||||||
}
|
}
|
||||||
|
func Test_GetFcmToken(t *testing.T) {
|
||||||
|
uid := "test_uid"
|
||||||
|
platformID := 2
|
||||||
|
token, err := DB.GetFcmToken(uid, platformID)
|
||||||
|
assert.Nil(t, err)
|
||||||
|
fmt.Println("token is :", token)
|
||||||
|
}
|
||||||
|
|
||||||
//func Test_GetGroupMemberList(t *testing.T) {
|
//func Test_GetGroupMemberList(t *testing.T) {
|
||||||
// groupID := "3791742301"
|
// groupID := "3791742301"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user