@@ -996,23 +996,23 @@ func TestRing_ShuffleShardWithLookback_CorrectnessWithFuzzy(t *testing.T) {
996996 // are returned at any given time, BUT at least all required instances are returned.
997997 var (
998998 numInitialInstances = []int {9 , 30 , 60 , 90 }
999- numInitialZones = []int {3 , 1 , 3 }
999+ numInitialZones = []int {1 , 3 }
10001000 numEvents = 100
10011001 lookbackPeriod = time .Hour
10021002 delayBetweenEvents = 5 * time .Minute // 12 events / hour
10031003 userID = "user-1"
10041004 )
10051005
1006- // Randomise the seed but log it in case we need to reproduce the test on failure.
1007- seed := time .Now ().UnixNano ()
1008- rand .Seed (seed )
1009- t .Log ("random generator seed:" , seed )
1010-
10111006 for _ , numInstances := range numInitialInstances {
10121007 for _ , numZones := range numInitialZones {
10131008 testName := fmt .Sprintf ("num instances = %d, num zones = %d" , numInstances , numZones )
10141009
10151010 t .Run (testName , func (t * testing.T ) {
1011+ // Randomise the seed but log it in case we need to reproduce the test on failure.
1012+ seed := time .Now ().UnixNano ()
1013+ rand .Seed (seed )
1014+ t .Log ("random generator seed:" , seed )
1015+
10161016 // Initialise the ring.
10171017 ringDesc := & Desc {Ingesters : generateRingInstances (numInstances , numZones )}
10181018 ring := Ring {
0 commit comments