mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-02 10:18:45 +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 {
|
||||
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)
|
||||
}
|
||||
if _, ok := headers["operationID"]; !ok {
|
||||
@ -98,7 +99,8 @@ func RunE2ETests(t *testing.T) {
|
||||
}
|
||||
|
||||
// Example of forcing a logout
|
||||
_ = user.ForceLogout(token, "4950983283", 2)
|
||||
err = user.ForceLogout(token, "4950983283", 2)
|
||||
if err != nil {
|
||||
|
||||
// Example of checking user account
|
||||
_ = user.CheckUserAccount(token, []string{"openIM123456", "anotherUserID"})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user