From b23060ff3acfa7e190fa8dbf2b4a73c91cf106b8 Mon Sep 17 00:00:00 2001
From: Roman Tsisyk <roman@tsisyk.com>
Date: Tue, 29 Nov 2016 14:05:28 +0300
Subject: [PATCH] Travis CI: increase the maximum number of files on macOS

---
 extra/travis/test_osx.sh | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/extra/travis/test_osx.sh b/extra/travis/test_osx.sh
index cf294b1126..3603c0d29c 100755
--- a/extra/travis/test_osx.sh
+++ b/extra/travis/test_osx.sh
@@ -1 +1,9 @@
+echo "Increase the maximum number of open file descriptors on macOS"
+NOFILE=20480
+sudo sysctl -w kern.maxfiles=$NOFILE
+sudo sysctl -w kern.maxfilesperproc=$NOFILE
+sudo launchctl limit maxfiles $NOFILE $NOFILE
+ulimit -S -n $NOFILE
+ulimit -n
+
 cd test && python test-run.py
-- 
GitLab