Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3
Commits
dab716ba
Unverified
Commit
dab716ba
authored
Mar 24, 2017
by
Jakub Sztandera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: fix ulimit tests for 2048 fds
License: MIT Signed-off-by:
Jakub Sztandera
<
kubuxu@protonmail.ch
>
parent
295dea22
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
test/sharness/lib/test-lib.sh
test/sharness/lib/test-lib.sh
+1
-1
test/sharness/t0060-daemon.sh
test/sharness/t0060-daemon.sh
+3
-3
No files found.
test/sharness/lib/test-lib.sh
View file @
dab716ba
...
...
@@ -208,7 +208,7 @@ test_launch_ipfs_daemon() {
args
=
"
$@
"
test
"
$TEST_ULIMIT_PRESET
"
!=
1
&&
ulimit
-n
1024
test
"
$TEST_ULIMIT_PRESET
"
!=
1
&&
ulimit
-n
2048
test_expect_success
"'ipfs daemon' succeeds"
'
ipfs daemon $args >actual_daemon 2>daemon_err &
...
...
test/sharness/t0060-daemon.sh
View file @
dab716ba
...
...
@@ -126,11 +126,11 @@ TEST_ULIMIT_PRESET=1
test_launch_ipfs_daemon
test_expect_success
"daemon raised its fd limit"
'
grep "raised file descriptor limit to
1024
." actual_daemon > /dev/null
grep "raised file descriptor limit to
2048
." actual_daemon > /dev/null
'
test_expect_success
"daemon actually can handle
1024
file descriptors"
'
hang-fds -hold=2s
1
000 '
$API_MADDR
'
test_expect_success
"daemon actually can handle
2048
file descriptors"
'
hang-fds -hold=2s
2
000 '
$API_MADDR
'
> /dev/null
'
test_expect_success
"daemon didnt throw any errors"
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment