Skip to content

Commit b7222c5

Browse files
committed
Reversed the indices
1 parent 9ab35a3 commit b7222c5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

riemann-java-client/src/test/java/riemann/java/client/tests/TcpClientTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
package riemann.java.client.tests;
32
import static org.junit.Assert.assertEquals;
43
import static org.junit.Assert.assertTrue;
@@ -231,8 +230,9 @@ public void overloadTest() throws IOException, InterruptedException {
231230
}
232231

233232
// Should see both overloads and timeouts
234-
assertTrue("No Overloads", 0 < counts[1]);
235-
assertTrue("No timeouts", 0 < counts[2]);
233+
// Fixed: corrected the indices to match the documented state mapping
234+
assertTrue("No timeouts", 0 < counts[1]);
235+
assertTrue("No Overloads", 0 < counts[2]);
236236

237237
// No others
238238
assertTrue(counts[3] == 0);
@@ -243,4 +243,4 @@ public void overloadTest() throws IOException, InterruptedException {
243243
server.stop();
244244
}
245245
}
246-
}
246+
}

0 commit comments

Comments
 (0)