From 42b8afc9da1d435f463138cbf21bdec9e4246562 Mon Sep 17 00:00:00 2001 From: Balakrishnan Balasubramanian Date: Fri, 24 Jan 2025 21:23:37 -0500 Subject: [PATCH] Remove log from test --- anyhttp_test.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/anyhttp_test.go b/anyhttp_test.go index 5024c11..35c6658 100644 --- a/anyhttp_test.go +++ b/anyhttp_test.go @@ -3,7 +3,6 @@ package anyhttp import ( "context" "encoding/json" - "log" "testing" "time" ) @@ -123,7 +122,12 @@ func Test_parseAddress(t *testing.T) { func TestServe(t *testing.T) { ctx, err := Serve("unix?path=/tmp/foo.sock", nil) - log.Printf("Got ctx: %v\n, err: %v", ctx, err) + if err != nil { + t.Fatal() + } + if ctx.AddressType != UnixSocket { + t.Errorf("Serve() ServerCtx = %v, want %v", ctx.AddressType, UnixSocket) + } ctx.Shutdown(context.TODO()) }