all: fix go vet warnings
This commit is contained in:
@ -41,5 +41,5 @@ func ipcListen(endpoint string) (net.Listener, error) {
|
||||
|
||||
// newIPCConnection will connect to a Unix socket on the given endpoint.
|
||||
func newIPCConnection(endpoint string) (net.Conn, error) {
|
||||
return net.DialUnix("unix", nil, &net.UnixAddr{endpoint, "unix"})
|
||||
return net.DialUnix("unix", nil, &net.UnixAddr{Name: endpoint, Net: "unix"})
|
||||
}
|
||||
|
@ -75,7 +75,7 @@ func TestJSONRequestParsing(t *testing.T) {
|
||||
t.Fatalf("%v", e)
|
||||
}
|
||||
if id != 1234 {
|
||||
t.Fatalf("Expected id 1234 but got %s", id)
|
||||
t.Fatalf("Expected id 1234 but got %d", id)
|
||||
}
|
||||
} else {
|
||||
t.Fatalf("invalid request, expected *json.RawMesage got %T", requests[0].id)
|
||||
|
Reference in New Issue
Block a user