@cryptotaxi247 / kubo / commits / dab716ba0

test: fix ulimit tests for 2048 fds

License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

Jakub Sztandera committed Mar 24, 2017 at 19:05 UTC dab716ba02d39ccbfbe2f57506935b71f32e7b59
2 files changed +4 -4
test/sharness/lib/test-lib.sh
+1 -1
@@ -208,7 +208,7 @@ test_launch_ipfs_daemon() {
208
209 args="$@"
210
211 - test "$TEST_ULIMIT_PRESET" != 1 && ulimit -n 1024
211 + test "$TEST_ULIMIT_PRESET" != 1 && ulimit -n 2048
212
213 test_expect_success "'ipfs daemon' succeeds" '
214 ipfs daemon $args >actual_daemon 2>daemon_err &
test/sharness/t0060-daemon.sh
+3 -3
@@ -126,11 +126,11 @@ TEST_ULIMIT_PRESET=1
126 test_launch_ipfs_daemon
127
128 test_expect_success "daemon raised its fd limit" '
129 - grep "raised file descriptor limit to 1024." actual_daemon > /dev/null
129 + grep "raised file descriptor limit to 2048." actual_daemon > /dev/null
130 '
131
132 -test_expect_success "daemon actually can handle 1024 file descriptors" '
133 - hang-fds -hold=2s 1000 '$API_MADDR'
132 +test_expect_success "daemon actually can handle 2048 file descriptors" '
133 + hang-fds -hold=2s 2000 '$API_MADDR' > /dev/null
134 '
135
136 test_expect_success "daemon didnt throw any errors" '