summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/torture/local/messaging.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/torture/local/messaging.c b/source4/torture/local/messaging.c
index 85a6ff7e82..22b05a12b5 100644
--- a/source4/torture/local/messaging.c
+++ b/source4/torture/local/messaging.c
@@ -101,14 +101,16 @@ static BOOL test_ping_speed(TALLOC_CTX *mem_ctx)
if (!NT_STATUS_IS_OK(status1)) {
printf("msg1 failed - %s\n", nt_errstr(status1));
+ } else {
+ ping_count++;
}
if (!NT_STATUS_IS_OK(status2)) {
printf("msg2 failed - %s\n", nt_errstr(status2));
+ } else {
+ ping_count++;
}
- ping_count += 2;
-
while (ping_count > pong_count + 20) {
event_loop_once(ev);
}