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 ca23f9b commit 0e72421
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ffs/manager/manager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ 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.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 0e72421

Please sign in to comment.