- Removed duplicate code for random bytes generation by using param value of makeNew in testAuthSessions
This commit is contained in:
parent
126034f0f6
commit
398f1d0aca
@ -18,7 +18,7 @@ func testAuthSessions(t *testing.T, s store.AuthSessions) {
|
||||
makeNew = func(handle string) *types.AuthSession {
|
||||
// minimum data set for new authSession
|
||||
return &types.AuthSession{
|
||||
ID: string(rand.Bytes(10)),
|
||||
ID: handle,
|
||||
CreatedAt: time.Now(),
|
||||
Data: []byte("..."),
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user