mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +08:00
feat: Updated test/e2e/e2e.go
This commit is contained in:
parent
f5b3060b21
commit
6d68549542
@ -42,7 +42,8 @@ func RunE2ETests(t *testing.T) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatalf("Failed to get user token: %v", err)
|
t.Fatalf("Failed to get user token: %v", err)
|
||||||
}
|
}
|
||||||
if headers == nil {
|
headers := make(map[string]string)
|
||||||
|
if err != nil {
|
||||||
headers = make(map[string]string)
|
headers = make(map[string]string)
|
||||||
}
|
}
|
||||||
if _, ok := headers["operationID"]; !ok {
|
if _, ok := headers["operationID"]; !ok {
|
||||||
@ -98,7 +99,8 @@ func RunE2ETests(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Example of forcing a logout
|
// Example of forcing a logout
|
||||||
_ = user.ForceLogout(token, "4950983283", 2)
|
err = user.ForceLogout(token, "4950983283", 2)
|
||||||
|
if err != nil {
|
||||||
|
|
||||||
// Example of checking user account
|
// Example of checking user account
|
||||||
_ = user.CheckUserAccount(token, []string{"openIM123456", "anotherUserID"})
|
_ = user.CheckUserAccount(token, []string{"openIM123456", "anotherUserID"})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user