Skip to content

Commit a08b64c

Browse files
committed
Increased unit tests timeout
Signed-off-by: Marco Pracucci <[email protected]>
1 parent 44b50fd commit a08b64c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

pkg/ring/ring_test.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -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{

tools/test

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SLOW=
77
TAGS=
88
PARALLEL=
99
RACE="-race -covermode=atomic"
10-
TIMEOUT=5m
10+
TIMEOUT=10m
1111
VERBOSE=
1212

1313
usage() {

0 commit comments

Comments
 (0)