Remove log from test
This commit is contained in:
parent
74ade60009
commit
42b8afc9da
@ -3,7 +3,6 @@ package anyhttp
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"log"
|
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
@ -123,7 +122,12 @@ func Test_parseAddress(t *testing.T) {
|
|||||||
|
|
||||||
func TestServe(t *testing.T) {
|
func TestServe(t *testing.T) {
|
||||||
ctx, err := Serve("unix?path=/tmp/foo.sock", nil)
|
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())
|
ctx.Shutdown(context.TODO())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user