Skip to content

Commit

Permalink
fixing an ineffassign error
Browse files Browse the repository at this point in the history
Signed-off-by: David Lawrence <[email protected]> (github: endophage)
  • Loading branch information
David Lawrence committed Feb 19, 2017
1 parent 04dc8b0 commit 7927e96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1025,12 +1025,14 @@ func TestAllNotNearExpiry(t *testing.T) {
func TestRotateRemoteKeyOffline(t *testing.T) {
// without a valid roundtripper, rotation should fail since we cannot initialize a HTTPStore
remote, err := getRemoteStore("invalidURL", "gun", nil)
require.NoError(t, err)
key, err := rotateRemoteKey(data.CanonicalSnapshotRole, remote)
require.Error(t, err)
require.Nil(t, key)

// if the underlying remote store is faulty and cannot rotate keys, we should get back the error
remote, err = getRemoteStore("https://notary-server", "gun", http.DefaultTransport)
require.NoError(t, err)
key, err = rotateRemoteKey(data.CanonicalSnapshotRole, remote)
require.Error(t, err)
require.Nil(t, key)
Expand Down

0 comments on commit 7927e96

Please sign in to comment.