From 398f1d0aca873bb9ad7b351341a8e68f72a58c8a Mon Sep 17 00:00:00 2001 From: vicky Date: Sat, 20 Mar 2021 15:32:47 +0530 Subject: [PATCH] - Removed duplicate code for random bytes generation by using param value of makeNew in testAuthSessions --- store/tests/auth_sessions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/tests/auth_sessions.go b/store/tests/auth_sessions.go index c63aec1e2..3a3261a15 100644 --- a/store/tests/auth_sessions.go +++ b/store/tests/auth_sessions.go @@ -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("..."), }