Commit da7209a6 authored by Steven Allen's avatar Steven Allen

test: fix tests on freebsd

parent 8e39fcb2
......@@ -7,5 +7,6 @@ import "syscall"
func curFileLimit() uint64 {
var n syscall.Rlimit
syscall.Getrlimit(syscall.RLIMIT_NOFILE, &n)
return n.Cur
// cast because some platforms use int64 (e.g., freebsd)
return uint64(n.Cur)
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment