Widen margins of TestDifferentWidths and TestTooWide

These behavioral unit tests of queueset were failing because the
evaluation criteria were too strict.
This commit is contained in:
Mike Spreitzer 2021-09-09 17:07:58 -04:00
parent 73453e473b
commit 59d319ec06

View File

@ -696,7 +696,7 @@ func TestDifferentWidths(t *testing.T) {
concurrencyLimit: 6,
evalDuration: time.Second * 20,
expectedFair: []bool{true},
expectedFairnessMargin: []float64{0.1},
expectedFairnessMargin: []float64{0.16},
expectAllRequests: true,
evalInqueueMetrics: true,
evalExecutingMetrics: true,
@ -735,7 +735,7 @@ func TestTooWide(t *testing.T) {
concurrencyLimit: 6,
evalDuration: time.Second * 40,
expectedFair: []bool{true},
expectedFairnessMargin: []float64{0.35},
expectedFairnessMargin: []float64{0.38},
expectAllRequests: true,
evalInqueueMetrics: true,
evalExecutingMetrics: true,