Skip to content
This repository
Browse code

Oops broken test...

  • Loading branch information...
commit 765a0ab88a1879b89fb072a7d8e46edf0b63a633 1 parent 2f41217
Jean-Frederic Clere jfclere authored

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. +5 5 test/java/org/jboss/mod_cluster/TestFailAppover.java
10 test/java/org/jboss/mod_cluster/TestFailAppover.java
@@ -59,12 +59,12 @@ public void testFailAppover() {
59 59
60 60 service = new JBossWeb("node3", "localhost");
61 61 connector = service.addConnector(8013);
62   - service.AddContext("/test", "/test");
  62 + service.AddContext("/test", "/test", true);
63 63 server.addService(service);
64 64
65 65 service2 = new JBossWeb("node4", "localhost");
66 66 connector2 = service2.addConnector(8014);
67   - service2.AddContext("/test", "/test");
  67 + service2.AddContext("/test", "/test", true);
68 68 server.addService(service2);
69 69
70 70 cluster = Maintest.createClusterListener("232.0.0.2", 23364, false, "dom1");
@@ -99,7 +99,7 @@ public void testFailAppover() {
99 99
100 100 // Wait for it.
101 101 try {
102   - if (client.runit("/ROOT/MyCount", 10, false, true) != 0)
  102 + if (client.runit("/test/MyCount", 10, false, true) != 0)
103 103 clienterror = true;
104 104 } catch (Exception ex) {
105 105 ex.printStackTrace();
@@ -111,10 +111,10 @@ public void testFailAppover() {
111 111 // Stop the connector that has received the request...
112 112 String node = client.getnode();
113 113 if ("node4".equals(node)) {
114   - service2.removeContext("/");
  114 + service2.removeContext("/test");
115 115 node = "node3";
116 116 } else {
117   - service.removeContext("/");
  117 + service.removeContext("/test");
118 118 node = "node4";
119 119 }
120 120

0 comments on commit 765a0ab

Please sign in to comment.
Something went wrong with that request. Please try again.