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
756382a6
Commit
756382a6
authored
Feb 02, 2015
by
Juan Batiz-Benet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sharness/test-lib: wait longer for daemon
it keeps failing early.
parent
6b4664fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
test/sharness/lib/test-lib.sh
test/sharness/lib/test-lib.sh
+9
-6
No files found.
test/sharness/lib/test-lib.sh
View file @
756382a6
...
...
@@ -64,11 +64,14 @@ test_cmp_repeat_10_sec() {
test_cmp
"
$1
"
"
$2
"
}
test_run_repeat_
1
0_sec
()
{
for
i
in
1 2 3 4 5 6
7 8 9 10
test_run_repeat_
6
0_sec
()
{
for
i
in
1 2 3 4 5 6
do
(
test_eval_
"
$1
"
)
&&
return
sleep
1
for
i
in
1 2 3 4 5 6 7 8 9 10
do
(
test_eval_
"
$1
"
)
&&
return
sleep
1
done
done
return
1
# failed
}
...
...
@@ -177,13 +180,13 @@ test_launch_ipfs_daemon() {
test_expect_success
"'ipfs daemon' is ready"
'
IPFS_PID=$! &&
test_wait_output_n_lines_60_sec actual_daemon 2 &&
test_run_repeat_
1
0_sec "grep \"API server listening on $ADDR_API\" actual_daemon" ||
test_run_repeat_
6
0_sec "grep \"API server listening on $ADDR_API\" actual_daemon" ||
fsh cat actual_daemon || fsh cat daemon_err
'
if
test
"
$ADDR_GWAY
"
!=
""
;
then
test_expect_success
"'ipfs daemon' output includes Gateway address"
'
test_run_repeat_
1
0_sec "grep \"Gateway server listening on $ADDR_GWAY\" actual_daemon" ||
test_run_repeat_
6
0_sec "grep \"Gateway server listening on $ADDR_GWAY\" actual_daemon" ||
fsh cat daemon_err
'
fi
...
...
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