Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
Signed-off-by: haanhvu <haanh6594@gmail.com>
  • Loading branch information
haanhvu committed Aug 30, 2022
1 parent 34d6c26 commit e09aee2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/receive/hashring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,10 @@ func TestHashringAlgorithmFromHashringConfig(t *testing.T) {
}

hashring := newMultiHashring(AlgorithmKetama, 3, cfg)
expectedHashring := simpleHashring(cfg[0].Endpoints)
expectedHashring := &multiHashring{
cache: make(map[string]simpleHashring(cfg[0].Endpoints)),
}

require.Equal(t, expectedHashring, hashring)
}

Expand Down

0 comments on commit e09aee2

Please sign in to comment.