projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
14745: Replaces debug println with proper return and doc clean up
[arvados.git]
/
services
/
keep-balance
/
balance_test.go
diff --git
a/services/keep-balance/balance_test.go
b/services/keep-balance/balance_test.go
index 2e664bedfb19fe8054d39083e6ee4f5cf6e477c6..37be185dcc1af9fbc4ebf9f83cd8302ca15b8e6d 100644
(file)
--- 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},
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{
// The best replicas are too new to delete, but the excess
// replica is old enough.
bal.try(c, tester{