#2546 MetricsCollectorSpec assertion modified for heap mem max in relation to used and committed.

This commit is contained in:
Helena Edelson 2012-09-24 16:31:39 -06:00
parent 6cb7a8cb79
commit 0a2e66b9c3

View file

@ -95,9 +95,8 @@ class MetricsCollectorSpec extends AkkaSpec(MetricsEnabledSpec.config) with Impl
case (a, b) if a == "heap-memory-used" b.longValue must be >= (0L); b
case (a, b) if a == "heap-memory-committed" b.longValue must be > (0L); b
case (a, b) if a == "heap-memory-max"
used.get.longValue must be < (b.longValue)
committed.get.longValue must be < (b.longValue)
used.get.longValue + committed.get.longValue must be <= (b.longValue)
used.get.longValue must be <= (b.longValue)
committed.get.longValue must be <= (b.longValue)
b
}
}