3
0

- Removed duplicate code for random bytes generation by using param value of makeNew in testAuthSessions

This commit is contained in:
vicky 2021-03-20 15:32:47 +05:30 committed by Denis Arh
parent 126034f0f6
commit 398f1d0aca

View File

@ -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("..."),
}