X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/95e5ccacf6c1193b313fa90a6d39baafa2ba67d8..ff241c645b4f9c817739141016d6bb38ae46dc97:/services/keep-balance/balance_test.go diff --git a/services/keep-balance/balance_test.go b/services/keep-balance/balance_test.go index 2e664bedfb..37be185dcc 100644 --- a/services/keep-balance/balance_test.go +++ b/services/keep-balance/balance_test.go @@ -238,7 +238,14 @@ func (bal *balancerSuite) TestDecreaseReplBlockTooNew(c *check.C) { bal.try(c, tester{ desired: map[string]int{"default": 2}, current: slots{0, 1, 2}, - timestamps: []int64{oldTime, newTime, newTime + 1}}) + timestamps: []int64{oldTime, newTime, newTime + 1}, + expectResult: balanceResult{ + have: 3, + want: 2, + classState: map[string]balancedBlockState{"default": { + desired: 2, + surplus: 1, + unachievable: false}}}}) // The best replicas are too new to delete, but the excess // replica is old enough. bal.try(c, tester{