Skip to content

Commit 44b50fd

Browse files
committed
Fixed TestRing_ShuffleShardWithLookback_CorrectnessWithFuzzy
Signed-off-by: Marco Pracucci <[email protected]>
1 parent 4104dc6 commit 44b50fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/ring/ring_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ func TestRing_ShuffleShardWithLookback_CorrectnessWithFuzzy(t *testing.T) {
10351035
currTime := time.Now().Add(lookbackPeriod).Add(time.Minute)
10361036

10371037
// Add the initial shard to the history.
1038-
rs, err := ring.ShuffleShard(userID, shardSize).GetAll(Read)
1038+
rs, err := ring.shuffleShard(userID, shardSize, 0, time.Now()).GetAll(Read)
10391039
require.NoError(t, err)
10401040

10411041
history := map[time.Time]ReplicationSet{
@@ -1099,7 +1099,7 @@ func TestRing_ShuffleShardWithLookback_CorrectnessWithFuzzy(t *testing.T) {
10991099
}
11001100

11011101
// Add the current shard to the history.
1102-
rs, err = ring.ShuffleShard(userID, shardSize).GetAll(Read)
1102+
rs, err = ring.shuffleShard(userID, shardSize, 0, time.Now()).GetAll(Read)
11031103
require.NoError(t, err)
11041104
history[currTime] = rs
11051105

0 commit comments

Comments
 (0)