From 906d5870f80fd01bfce6ce8c7787998fe83116dc Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 13 Feb 2024 00:06:42 +0000 Subject: [PATCH] [ci skip] test: add additional trace logging --- TcpDotNet.ClientIntegrationTest/Program.cs | 5 ++++- TcpDotNet.ListenerIntegrationTest/Program.cs | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/TcpDotNet.ClientIntegrationTest/Program.cs b/TcpDotNet.ClientIntegrationTest/Program.cs index 0ecd968..9a732c5 100644 --- a/TcpDotNet.ClientIntegrationTest/Program.cs +++ b/TcpDotNet.ClientIntegrationTest/Program.cs @@ -11,7 +11,10 @@ client.Disconnected += (_, e) => Console.WriteLine($"Disconnected: {e.Disconnect client.RegisterPacketHandler(PacketHandler.Empty); client.RegisterPacketHandler(new GoodbyePacketHandler()); -await client.ConnectAsync(IPAddress.IPv6Loopback, 1234); + +var remoteEP = new IPEndPoint(IPAddress.Loopback, 1234); +Console.WriteLine($"Connecting to {remoteEP}"); +await client.ConnectAsync(remoteEP); Console.WriteLine($"Connected to {client.RemoteEndPoint}. My session is {client.SessionId}"); diff --git a/TcpDotNet.ListenerIntegrationTest/Program.cs b/TcpDotNet.ListenerIntegrationTest/Program.cs index 611cae2..9ef8c33 100644 --- a/TcpDotNet.ListenerIntegrationTest/Program.cs +++ b/TcpDotNet.ListenerIntegrationTest/Program.cs @@ -10,7 +10,10 @@ listener.ClientDisconnected += (_, e) => Console.WriteLine($"Client {e.Client.Se listener.RegisterPacketHandler(new HelloPacketHandler()); listener.RegisterPacketHandler(new PingPacketHandler()); + +Console.WriteLine("Starting listener"); listener.Start(1234); +Console.WriteLine($"Listener started on {listener.LocalEndPoint}"); await Task.Delay(-1);