tests: get rid of syscall.PathMax
Does not exist on OSX Reported in https://github.com/rfjakob/gocryptfs/issues/15
This commit is contained in:
parent
e6075ddf2e
commit
ca5c06ef4e
@ -350,7 +350,7 @@ func QueryCtlSock(t *testing.T, socketPath string, req ctlsock.RequestStruct) (r
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
buf := make([]byte, 2*syscall.PathMax)
|
||||
buf := make([]byte, ctlsock.ReadBufSize)
|
||||
n, err := conn.Read(buf)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
|
Loading…
Reference in New Issue
Block a user