#2546 MetricsCollectorSpec assertion modified for heap mem max in relation to used and committed.
This commit is contained in:
parent
6cb7a8cb79
commit
0a2e66b9c3
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue