From 58fb633451621dfcc809b4a5baf9b69a84f6e122 Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Sat, 17 Feb 2024 14:21:14 -0500 Subject: [PATCH] Added additional comments --- network_programming/tcp/ch3/dail_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/network_programming/tcp/ch3/dail_test.go b/network_programming/tcp/ch3/dail_test.go index 806a941..511c8ef 100644 --- a/network_programming/tcp/ch3/dail_test.go +++ b/network_programming/tcp/ch3/dail_test.go @@ -9,6 +9,7 @@ import ( func TestDial(t *testing.T) { //create a listener on a random port to make out test connection to listener, err := net.Listen("tcp", "127.0.0.1:0") + t.Log("Test server listening on:", listener.Addr().String()) if err != nil { t.Fatal(err) } @@ -41,6 +42,7 @@ func TestDial(t *testing.T) { if err != nil { // c.Read returns io.EOF when FIN packet (graceful termination) is received if err != io.EOF { + t.Log("FIN packet received.") t.Error(err) } return