Uploaded image for project: 'Apache DirectMemory'
  1. Apache DirectMemory
  2. DIRECTMEMORY-29

Fix a payload size assertion in MemoryManagerTests.smokeTest()

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 0.1-incubating
    • 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);

      Attachments

        Activity

          People

            Unassigned Unassigned
            ibabalich Igor Babalich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: