@@ -996,23 +996,23 @@ func TestRing_ShuffleShardWithLookback_CorrectnessWithFuzzy(t *testing.T) {
996
996
// are returned at any given time, BUT at least all required instances are returned.
997
997
var (
998
998
numInitialInstances = []int {9 , 30 , 60 , 90 }
999
- numInitialZones = []int {3 , 1 , 3 }
999
+ numInitialZones = []int {1 , 3 }
1000
1000
numEvents = 100
1001
1001
lookbackPeriod = time .Hour
1002
1002
delayBetweenEvents = 5 * time .Minute // 12 events / hour
1003
1003
userID = "user-1"
1004
1004
)
1005
1005
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
-
1011
1006
for _ , numInstances := range numInitialInstances {
1012
1007
for _ , numZones := range numInitialZones {
1013
1008
testName := fmt .Sprintf ("num instances = %d, num zones = %d" , numInstances , numZones )
1014
1009
1015
1010
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
+
1016
1016
// Initialise the ring.
1017
1017
ringDesc := & Desc {Ingesters : generateRingInstances (numInstances , numZones )}
1018
1018
ring := Ring {
0 commit comments