Skip to content

Commit

Permalink
feat: Updated test/e2e/e2e.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Feb 1, 2024
1 parent 6d68549 commit 4edc968
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func RunE2ETests(t *testing.T) {
if _, ok := headers["token"]; !ok {
headers["token"] = token
}
"token": token,

"operationID": operationID,

Check failure on line 56 in test/e2e/e2e.go

View workflow job for this annotation

GitHub Actions / lint

illegal label declaration (typecheck)

Check failure on line 56 in test/e2e/e2e.go

View workflow job for this annotation

GitHub Actions / Execute OpenIM script on ubuntu-latest

syntax error: unexpected : at end of statement

Check failure on line 56 in test/e2e/e2e.go

View workflow job for this annotation

GitHub Actions / Execute OpenIM script on ubuntu-latest

syntax error: unexpected : at end of statement

Check failure on line 56 in test/e2e/e2e.go

View workflow job for this annotation

GitHub Actions / Execute OpenIM script on ubuntu-latest

syntax error: unexpected : at end of statement

Check failure on line 56 in test/e2e/e2e.go

View workflow job for this annotation

GitHub Actions / Execute OpenIM script on ubuntu-latest

syntax error: unexpected : at end of statement
}

Expand All @@ -62,16 +62,16 @@ func RunE2ETests(t *testing.T) {
t.Fatalf("Failed to get user info: %v", err)
return
}
_ = user.GetUsersInfo(token, []string{"user1", "user2"})
_ = user.GetUsersInfo(token, headers, []string{"user1", "user2"})

// Example of updating user info
_ = user.UpdateUserInfo(token, "user1", "NewNickname", "https://github.com/openimsdk/open-im-server/blob/main/assets/logo/openim-logo.png")
_ = user.UpdateUserInfo(token, headers, "user1", "NewNickname", "https://github.com/openimsdk/open-im-server/blob/main/assets/logo/openim-logo.png")

// Example of getting users' online status
_ = user.GetUsersOnlineStatus(token, []string{"user1", "user2"})
_ = user.GetUsersOnlineStatus(token, headers, []string{"user1", "user2"})

// Example of forcing a logout
_, err = user.ForceLogout(token, "4950983283", 2)
_, err = user.ForceLogout(token, headers, "4950983283", 2)
if err != nil {
t.Fatalf("Failed to force logout: %v", err)
return
Expand Down Expand Up @@ -103,8 +103,8 @@ func RunE2ETests(t *testing.T) {
if err != nil {

// Example of checking user account
_ = user.CheckUserAccount(token, []string{"openIM123456", "anotherUserID"})
_ = user.CheckUserAccount(token, headers, []string{"openIM123456", "anotherUserID"})

// Example of getting users
_ = user.GetUsers(token, 1, 100)
_ = user.GetUsers(token, headers, 1, 100)
}

0 comments on commit 4edc968

Please sign in to comment.