Return-Path: X-Original-To: apmail-incubator-directmemory-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-directmemory-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 101CF92C7 for ; Fri, 24 Feb 2012 09:09:10 +0000 (UTC) Received: (qmail 82349 invoked by uid 500); 24 Feb 2012 09:09:10 -0000 Delivered-To: apmail-incubator-directmemory-dev-archive@incubator.apache.org Received: (qmail 82302 invoked by uid 500); 24 Feb 2012 09:09:10 -0000 Mailing-List: contact directmemory-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: directmemory-dev@incubator.apache.org Delivered-To: mailing list directmemory-dev@incubator.apache.org Received: (qmail 82293 invoked by uid 99); 24 Feb 2012 09:09:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2012 09:09:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2012 09:09:09 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 04BE7338850 for ; Fri, 24 Feb 2012 09:08:49 +0000 (UTC) Date: Fri, 24 Feb 2012 09:08:49 +0000 (UTC) From: "Olivier Lamy (Resolved) (JIRA)" To: directmemory-dev@incubator.apache.org Message-ID: <2091102275.14656.1330074529020.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <413372955.53080.1320271532287.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (DIRECTMEMORY-29) Fix a payload size assertion in MemoryManagerTests.smokeTest() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DIRECTMEMORY-29?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Olivier Lamy resolved DIRECTMEMORY-29. -------------------------------------- Resolution: Fixed > Fix a payload size assertion in MemoryManagerTests.smokeTest() > -------------------------------------------------------------- > > Key: DIRECTMEMORY-29 > URL: https://issues.apache.org/jira/browse/DIRECTMEMORY-29 > Project: Apache DirectMemory > Issue Type: Test > Reporter: Igor Babalich > Priority: Trivial > Fix For: 0.6.0 > > > 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); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira