From cf23797f998d1aebb2eddd3af885481c86494fdf Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Thu, 1 Jun 2023 15:59:38 +0200 Subject: [PATCH] Unit test - Hang for testing ping-pong --- source/birchwood/client/client.d | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/birchwood/client/client.d b/source/birchwood/client/client.d index 177c63a..616dc68 100644 --- a/source/birchwood/client/client.d +++ b/source/birchwood/client/client.d @@ -1254,7 +1254,13 @@ public class Client : Thread } // TODO: Don't forget to re-enable this when done testing! - Thread.sleep(dur!("seconds")(15)); - client.quit(); + Thread.sleep(dur!("seconds")(4)); + client.joinChannel("#birchwood"); + while(true) + { + Thread.sleep(dur!("seconds")(15)); + } + + // client.quit(); } } \ No newline at end of file