Details
-
Test
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
Description
When the test is executed more than one time by junitbenchmarks, the same instance of MemoryManager is used. As result p.end is not equal to the payload's size, and test will fail.
Fix by changing
assertEquals(size,p.end); to assertEquals(size,p.end-p.start);