mirror of https://github.com/apache/activemq.git
Fixup failing LevelDB XA test.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1407018 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7c9fec6e25
commit
1a2cbe7641
|
@ -1,5 +1,6 @@
|
|||
package org.apache.activemq.leveldb;
|
||||
|
||||
import junit.framework.Test;
|
||||
import org.apache.activemq.broker.BrokerService;
|
||||
import org.apache.activemq.broker.BrokerTest;
|
||||
import org.apache.activemq.store.PersistenceAdapter;
|
||||
|
@ -12,13 +13,13 @@ import java.io.IOException;
|
|||
*/
|
||||
public class LevelDBStoreBrokerTest extends BrokerTest {
|
||||
|
||||
// def suite: Test = {
|
||||
// return new TestSuite(classOf[LevelDBStoreBrokerTest])
|
||||
// }
|
||||
//
|
||||
// def main(args: Array[String]): Unit = {
|
||||
// junit.textui.TestRunner.run(suite)
|
||||
// }
|
||||
public static Test suite() {
|
||||
return suite(LevelDBStoreBrokerTest.class);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
junit.textui.TestRunner.run(suite());
|
||||
}
|
||||
|
||||
@Override
|
||||
protected BrokerService createBroker() throws Exception {
|
||||
|
|
|
@ -311,6 +311,7 @@ class LevelDBStore extends ServiceSupport with BrokerServiceAware with Persisten
|
|||
if( prepared ) {
|
||||
uow.dequeue(xacontainer_id, message.getMessageId)
|
||||
}
|
||||
message.setMessageId(message.getMessageId.copy())
|
||||
store.doAdd(uow, message, delay)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue