From 5d19fed7273da4b094125b9245dccc4641d685a2 Mon Sep 17 00:00:00 2001 From: Karchnu Date: Thu, 23 Jul 2020 19:10:16 +0200 Subject: [PATCH] pongc & pongd --- tests/pongc.cr | 9 +-------- tests/pongd.cr | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/pongc.cr b/tests/pongc.cr index 2d778cb..2d3e8ff 100644 --- a/tests/pongc.cr +++ b/tests/pongc.cr @@ -78,15 +78,8 @@ def main CLI.message.not_nil! end - message = IPC::Message.new server_fd.not_nil!, - CLI.type.to_u8, - CLI.user_type.to_u8, - mstr - - message.fd = server_fd.not_nil! - CLI.rounds.times do |i| - client.send message + client.send server_fd.not_nil!, CLI.user_type.to_u8, mstr.to_slice end when IPC::Event::MessageReceived nb_messages_remaining -= 1 diff --git a/tests/pongd.cr b/tests/pongd.cr index fc66f7d..4862716 100644 --- a/tests/pongd.cr +++ b/tests/pongd.cr @@ -39,7 +39,7 @@ def main service.timer = CLI.timer # default: 30 seconds service.loop do |event| - service.pp + # service.pp case event when IPC::Event::Timer info "IPC::Event::Timer"