Added additional comments

drew/sql-it
Drew Bednar 12 months ago
parent af09d4e09c
commit 58fb633451

@ -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

Loading…
Cancel
Save