Skip to content

Commit

Permalink
off-by-one
Browse files Browse the repository at this point in the history
  • Loading branch information
flrgh committed Apr 9, 2024
1 parent 3afd425 commit 3fe53aa
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/state/filter_chain_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ func TestFilterChainsCollection_Delete(t *testing.T) {
assert.Nil(res)
}

func TestFilterChainGetAll(t *testing.T) {
func TestFilterChainsCollection_GetAll(t *testing.T) {
assert := assert.New(t)
collection := filterChainsCollection()

Expand All @@ -566,10 +566,9 @@ func TestFilterChainGetAll(t *testing.T) {
}

assert.NoError(collection.Add(filterChain))

}

allFilterChains, err := collection.GetAll()
assert.Nil(err)
assert.Equal(4, len(allFilterChains))
assert.Equal(3, len(allFilterChains))
}

0 comments on commit 3fe53aa

Please sign in to comment.