Skip to content

Commit f80df64

Browse files
committed
Added debug
1 parent e8166cf commit f80df64

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,16 @@ public void overloadTest() throws IOException, InterruptedException {
228228
for (int[] res : results) {
229229
counts[res[0]] += res[1];
230230
}
231+
232+
// Debug: print what we actually got
233+
if (debug) {
234+
System.out.println("Total counts:");
235+
System.out.println(" Success (0): " + counts[0]);
236+
System.out.println(" Timeout (1): " + counts[1]);
237+
System.out.println(" Overload (2): " + counts[2]);
238+
System.out.println(" Other (3): " + counts[3]);
239+
System.out.println(" Total: " + (counts[0] + counts[1] + counts[2] + counts[3]));
240+
}
231241

232242
// Should see overloads (but not necessarily timeouts with current config)
233243
// Note: counts[1] is timeouts, counts[2] is overloads

0 commit comments

Comments
 (0)