Skip to content

Commit

Permalink
Fix lint-consul-retry errors
Browse files Browse the repository at this point in the history
  • Loading branch information
analogue committed Apr 25, 2023
1 parent 84bbf11 commit 7521559
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,10 @@ func testSnapShotRestoreForLogStore(t *testing.T, logStore libcluster.LogStore)

retry.RunWith(failer(), t, func(r *retry.R) {
kv, _, err := fc.KV().Get(fmt.Sprintf("key-%d", 1), &api.QueryOptions{AllowStale: true})
require.NoError(t, err)
require.NotNil(t, kv)
require.Equal(t, kv.Key, fmt.Sprintf("key-%d", 1))
require.Equal(t, kv.Value, []byte(fmt.Sprintf("value-%d", 1)))
require.NoError(r, err)
require.NotNil(r, kv)
require.Equal(r, kv.Key, fmt.Sprintf("key-%d", 1))
require.Equal(r, kv.Value, []byte(fmt.Sprintf("value-%d", 1)))
})

// Now we have at least one non-nil key, the snapshot must be loaded so check
Expand Down

0 comments on commit 7521559

Please sign in to comment.