activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1138392 - /activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/StompTest.scala
Date Wed, 22 Jun 2011 10:44:23 GMT
Author: chirino
Date: Wed Jun 22 10:44:23 2011
New Revision: 1138392

URL: http://svn.apache.org/viewvc?rev=1138392&view=rev
Log:
Fix test case.

Modified:
    activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/StompTest.scala

Modified: activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/StompTest.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/StompTest.scala?rev=1138392&r1=1138391&r2=1138392&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/StompTest.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-stomp/src/test/scala/org/apache/activemq/apollo/stomp/StompTest.scala
Wed Jun 22 10:44:23 2011
@@ -1517,7 +1517,7 @@ class StompExpirationTest extends StompT
     connect("1.1")
 
     def put(msg:String, ttl:Option[Long]=None) = {
-      val expires_header = ttl.map("expires:"+System.currentTimeMillis()+_+"\n").getOrElse("")
+      val expires_header = ttl.map(t=> "expires:"+(System.currentTimeMillis()+t)+"\n").getOrElse("")
       client.write(
         "SEND\n" +
         expires_header +



Mime
View raw message