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
630816c7
Commit
630816c7
authored
Nov 01, 2014
by
Christian Couder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Speed up checking if mount works
License: MIT Signed-off-by:
Christian Couder
<
chriscool@tuxfamily.org
>
parent
4e2763a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
test/test-lib.sh
test/test-lib.sh
+10
-2
No files found.
test/test-lib.sh
View file @
630816c7
...
...
@@ -16,6 +16,15 @@
# Please put go-ipfs specific shell functions below
test_cmp_repeat_10_sec
()
{
for
i
in
1 2 3 4 5 6 7 8 9 10
do
test_cmp
"
$1
"
"
$2
"
&&
return
sleep
1
done
test_cmp
"
$1
"
"
$2
"
}
test_launch_ipfs_mount
()
{
test_expect_success
"ipfs init succeeds"
'
...
...
@@ -35,10 +44,9 @@ test_launch_ipfs_mount() {
test_expect_success
"ipfs mount output looks good"
'
IPFS_PID=$! &&
sleep 5 &&
echo "mounting ipfs at $(pwd)/ipfs" >expected &&
echo "mounting ipns at $(pwd)/ipns" >>expected &&
test_cmp expected actual
test_cmp
_repeat_10_sec
expected actual
'
}
...
...
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