activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cshan...@apache.org
Subject activemq git commit: https://issues.apache.org/jira/browse/AMQ-5923
Date Thu, 10 Sep 2015 16:24:09 GMT
Repository: activemq
Updated Branches:
  refs/heads/master f4a2543de -> 3ec560f2a


https://issues.apache.org/jira/browse/AMQ-5923

Making message size statistic tests more reliable


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/3ec560f2
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/3ec560f2
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/3ec560f2

Branch: refs/heads/master
Commit: 3ec560f2a83f9973a9c130a4ef8dc2eeeeb51ab2
Parents: f4a2543
Author: Christopher L. Shannon (cshannon) <christopher.l.shannon@gmail.com>
Authored: Thu Sep 10 16:22:44 2015 +0000
Committer: Christopher L. Shannon (cshannon) <christopher.l.shannon@gmail.com>
Committed: Thu Sep 10 16:23:43 2015 +0000

----------------------------------------------------------------------
 .../org/apache/activemq/store/AbstractStoreStatTestSupport.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/3ec560f2/activemq-unit-tests/src/test/java/org/apache/activemq/store/AbstractStoreStatTestSupport.java
----------------------------------------------------------------------
diff --git a/activemq-unit-tests/src/test/java/org/apache/activemq/store/AbstractStoreStatTestSupport.java
b/activemq-unit-tests/src/test/java/org/apache/activemq/store/AbstractStoreStatTestSupport.java
index 3f0e7c1..e9630f0 100644
--- a/activemq-unit-tests/src/test/java/org/apache/activemq/store/AbstractStoreStatTestSupport.java
+++ b/activemq-unit-tests/src/test/java/org/apache/activemq/store/AbstractStoreStatTestSupport.java
@@ -253,8 +253,7 @@ public abstract class AbstractStoreStatTestSupport {
      */
     protected BytesMessage createMessage(Session session, int messageSize, AtomicLong publishedMessageSize)
throws JMSException {
         final BytesMessage message = session.createBytesMessage();
-        final Random rn = new Random();
-        int size = rn.nextInt(messageSize - 100);
+        int size = messageSize;
         if (publishedMessageSize != null) {
             publishedMessageSize.addAndGet(size);
         }


Mime
View raw message