Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Finding MERGE2 and MERGE3

  • Loading branch information...
commit 4ee6bb5f52ba2a66f7a1e3d614870a3011a5bf1d 1 parent b1f7477
@belaban authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 tests/junit/org/jgroups/tests/DiscardTest.java
View
6 tests/junit/org/jgroups/tests/DiscardTest.java
@@ -1,6 +1,8 @@
package org.jgroups.tests;
+import org.jgroups.protocols.MERGE2;
+import org.jgroups.protocols.MERGE3;
import org.testng.annotations.*;
import org.jgroups.*;
import org.jgroups.protocols.DISCARD;
@@ -63,11 +65,11 @@ private void _testLosslessReception(boolean discard) throws Exception {
Properties properties=new Properties();
properties.setProperty("down", "0.1");
- ch1.getProtocolStack().insertProtocol(discard_prot, ProtocolStack.BELOW, "MERGE2");
+ ch1.getProtocolStack().insertProtocol(discard_prot, ProtocolStack.BELOW, MERGE2.class, MERGE3.class);
discard_prot=new DISCARD();
properties=new Properties();
properties.setProperty("down", "0.1");
- ch2.getProtocolStack().insertProtocol(discard_prot, ProtocolStack.BELOW, "MERGE2");
+ ch2.getProtocolStack().insertProtocol(discard_prot, ProtocolStack.BELOW, MERGE2.class, MERGE3.class);
}
ch1.connect(GROUP);
Please sign in to comment.
Something went wrong with that request. Please try again.