From af542b907748f27b88572c778e1bd80fc2109f81 Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Tue, 18 May 2021 13:40:04 -0300 Subject: [PATCH] fix lints Signed-off-by: Ignacio Hagopian --- ffs/manager/manager_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ffs/manager/manager_test.go b/ffs/manager/manager_test.go index 98566d44..687f0fea 100644 --- a/ffs/manager/manager_test.go +++ b/ffs/manager/manager_test.go @@ -176,11 +176,12 @@ func TestRegenerateAuthToken(t *testing.T) { require.NoError(t, err) // The old token should be invalid - n, err := m.GetByAuthToken(originalAuth.Token) + _, err = m.GetByAuthToken(originalAuth.Token) + require.NoError(t, err) require.Equal(t, err, ErrAuthTokenNotFound) // Get with new token and check the APIID is equal to the original one. - n, err = m.GetByAuthToken(regeneratedAuth) + n, err := m.GetByAuthToken(regeneratedAuth) require.NoError(t, err) require.Equal(t, originalAuth.APIID, n.ID()) require.NotEmpty(t, n.Addrs())