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 f5b3060 commit 6d68549
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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"})
Expand Down

0 comments on commit 6d68549

Please sign in to comment.