File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2442,7 +2442,7 @@ func TestRing_ShuffleShardWithLookback_CorrectnessWithFuzzy(t *testing.T) {
2442
2442
t .Run (testName , func (t * testing.T ) {
2443
2443
// Randomise the seed but log it in case we need to reproduce the test on failure.
2444
2444
seed := time .Now ().UnixNano ()
2445
- rand .New (rand .NewSource (seed ))
2445
+ rnd := rand .New (rand .NewSource (seed ))
2446
2446
t .Log ("random generator seed:" , seed )
2447
2447
2448
2448
// Initialise the ring.
@@ -2485,7 +2485,7 @@ func TestRing_ShuffleShardWithLookback_CorrectnessWithFuzzy(t *testing.T) {
2485
2485
for i := 1 ; i <= numEvents ; i ++ {
2486
2486
currTime = currTime .Add (delayBetweenEvents )
2487
2487
2488
- switch r := rand .Intn (100 ); {
2488
+ switch r := rnd .Intn (100 ); {
2489
2489
case r < 80 :
2490
2490
// Scale up instances by 1.
2491
2491
instanceID := fmt .Sprintf ("instance-%d" , nextInstanceID )
@@ -2508,7 +2508,7 @@ func TestRing_ShuffleShardWithLookback_CorrectnessWithFuzzy(t *testing.T) {
2508
2508
2509
2509
sort .Strings (instanceIDs )
2510
2510
2511
- idxToRemove := rand .Intn (len (instanceIDs ))
2511
+ idxToRemove := rnd .Intn (len (instanceIDs ))
2512
2512
idToRemove := instanceIDs [idxToRemove ]
2513
2513
delete (ringDesc .Ingesters , idToRemove )
2514
2514
You can’t perform that action at this time.
0 commit comments