Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
Signed-off-by: Ignacio Hagopian <[email protected]>
  • Loading branch information
jsign committed May 18, 2021
1 parent 35f9b38 commit af542b9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ffs/manager/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit af542b9

Please sign in to comment.