X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/af3bfbb6126ebce381c52ced87fc8af372d84118..19ea2726815a0d74f718339b1e42f76cc4bb463c:/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{