aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJakob Unterwurzacher2017-02-16 18:47:04 +0100
committerJakob Unterwurzacher2017-02-16 18:47:04 +0100
commitca5c06ef4e40af957cbb1ccaa3aae9baa843267e (patch)
tree469a5aba963a4746ccbaef930787299b2aefdcb3 /tests
parente6075ddf2e7a37c77e0124a1c483534b38b49c57 (diff)
tests: get rid of syscall.PathMax
Does not exist on OSX Reported in https://github.com/rfjakob/gocryptfs/issues/15
Diffstat (limited to 'tests')
-rw-r--r--tests/test_helpers/helpers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_helpers/helpers.go b/tests/test_helpers/helpers.go
index ff4a7be..6b7f6b4 100644
--- a/tests/test_helpers/helpers.go
+++ b/tests/test_helpers/helpers.go
@@ -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)