Skip to content

Commit 7158b89

Browse files
committed
FIXUP Random user token
1 parent 8355401 commit 7158b89

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/integration/integration_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"hash"
1212
"hash/fnv"
1313
"io"
14+
"math/rand"
1415
"net/http"
1516
"net/http/cookiejar"
1617
"net/http/httptest"
@@ -258,12 +259,9 @@ func loginUserWithPassword(t testing.TB, userName, password string) *TestSession
258259
return session
259260
}
260261

261-
// token has to be unique this counter take care of
262-
var tokenCounter int64
263-
264262
func getTokenForLoggedInUser(t testing.TB, session *TestSession) string {
265263
t.Helper()
266-
tokenCounter++
264+
tokenCounter := rand.Int()
267265
req := NewRequest(t, "GET", "/user/settings/applications")
268266
resp := session.MakeRequest(t, req, http.StatusOK)
269267
doc := NewHTMLParser(t, resp.Body)

0 commit comments

Comments
 (0)