diff options
Diffstat (limited to 'internal/auth/auth_test.go')
-rw-r--r-- | internal/auth/auth_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/auth/auth_test.go b/internal/auth/auth_test.go index 61b4e88a..715cb22e 100644 --- a/internal/auth/auth_test.go +++ b/internal/auth/auth_test.go @@ -443,9 +443,9 @@ func TestGenerateKeys(t *testing.T) { require.NotEqual(t, fmt.Sprint(keys[0]), fmt.Sprint(keys[2])) require.NotEqual(t, fmt.Sprint(keys[1]), fmt.Sprint(keys[2])) - require.Equal(t, len(keys[0]), 32) - require.Equal(t, len(keys[1]), 32) - require.Equal(t, len(keys[2]), 32) + require.Len(t, keys[0], 32) + require.Len(t, keys[1], 32) + require.Len(t, keys[2], 32) } func TestGetTokenIfExistsWhenTokenExists(t *testing.T) { @@ -482,7 +482,7 @@ func TestGetTokenIfExistsWhenTokenDoesNotExist(t *testing.T) { token, err := auth.GetTokenIfExists(result, r) require.Equal(t, "", token) - require.Equal(t, nil, err) + require.NoError(t, err) } func TestCheckResponseForInvalidTokenWhenInvalidToken(t *testing.T) { |