Skip to content

Commit

Permalink
Remove log from test
Browse files Browse the repository at this point in the history
  • Loading branch information
balki committed Jan 25, 2025
1 parent 74ade60 commit 42b8afc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions anyhttp_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package anyhttp
import (
"context"
"encoding/json"
"log"
"testing"
"time"
)
Expand Down Expand Up @@ -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())
}

Expand Down

0 comments on commit 42b8afc

Please sign in to comment.