@@ -160,7 +160,7 @@ func TestRequestQueue_GetNextRequestForQuerier_ShouldGetRequestAfterReshardingBe
160
160
}
161
161
162
162
func TestRequestQueue_QueriersShouldGetHighPriorityQueryFirst (t * testing.T ) {
163
- queue := NewRequestQueue (3 , 0 ,
163
+ queue := NewRequestQueue (100 , 0 ,
164
164
prometheus .NewGaugeVec (prometheus.GaugeOpts {}, []string {"user" }),
165
165
prometheus .NewCounterVec (prometheus.CounterOpts {}, []string {"user" }),
166
166
MockLimits {MaxOutstanding : 3 },
@@ -182,9 +182,9 @@ func TestRequestQueue_QueriersShouldGetHighPriorityQueryFirst(t *testing.T) {
182
182
isHighPriority : true ,
183
183
}
184
184
185
- assert .NotNil (t , queue .EnqueueRequest ("userID" , normalRequest1 , 1 , func () {}))
186
- assert .NotNil (t , queue .EnqueueRequest ("userID" , normalRequest2 , 1 , func () {}))
187
- assert .NotNil (t , queue .EnqueueRequest ("userID" , highPriorityRequest , 1 , func () {}))
185
+ assert .Nil (t , queue .EnqueueRequest ("userID" , normalRequest1 , 1 , func () {}))
186
+ assert .Nil (t , queue .EnqueueRequest ("userID" , normalRequest2 , 1 , func () {}))
187
+ assert .Nil (t , queue .EnqueueRequest ("userID" , highPriorityRequest , 1 , func () {}))
188
188
189
189
assert .Error (t , queue .EnqueueRequest ("userID" , highPriorityRequest , 1 , func () {})) // should fail due to maxOutstandingPerTenant = 3
190
190
assert .Equal (t , 3 , queue .queues .getTotalQueueSize ("userID" ))
@@ -197,7 +197,7 @@ func TestRequestQueue_QueriersShouldGetHighPriorityQueryFirst(t *testing.T) {
197
197
}
198
198
199
199
func TestRequestQueue_ReservedQueriersShouldOnlyGetHighPriorityQueries (t * testing.T ) {
200
- queue := NewRequestQueue (3 , 0 ,
200
+ queue := NewRequestQueue (100 , 0 ,
201
201
prometheus .NewGaugeVec (prometheus.GaugeOpts {}, []string {"user" }),
202
202
prometheus .NewCounterVec (prometheus.CounterOpts {}, []string {"user" }),
203
203
MockLimits {MaxOutstanding : 3 , ReservedQueriers : 1 },
0 commit comments