Skip to content

Commit

Permalink
Fix incorrect test refactor (ava-labs#1526)
Browse files Browse the repository at this point in the history
  • Loading branch information
abi87 authored May 18, 2023
1 parent bce0c92 commit b25c22b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cache/test_cacher.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,12 @@ func TestBasic(t *testing.T, cache Cacher[ids.ID, TestSizedInt]) {
require.Equal(expectedValue1, value)

cache.Put(id1, expectedValue1)
value, found = cache.Get(id1)
require.True(found)
require.Equal(expectedValue1, value)

cache.Put(id1, expectedValue1)
value, found = cache.Get(id1)
require.True(found)
require.Equal(expectedValue1, value)

Expand Down

0 comments on commit b25c22b

Please sign in to comment.