提交 d1ab8022 作者: Juan Batiz-Benet

test: hack around travis being slow

this is a hack around travis key-gen being really slow.
One option would be to add the --key-bits option to daemon
as well. Another option would be to find a better way to
wait for the output, rather than waiting n seconds.

cc @chriscool thoughts?
上级 3e96f481
...@@ -39,7 +39,7 @@ test_cmp_repeat_10_sec() { ...@@ -39,7 +39,7 @@ test_cmp_repeat_10_sec() {
test_cmp "$1" "$2" test_cmp "$1" "$2"
} }
test_wait_output_n_lines_20_sec() { test_wait_output_n_lines_60_sec() {
echo "$2" >expected_waitn echo "$2" >expected_waitn
for i in 1 2 3 4 5 6 7 8 9 10 for i in 1 2 3 4 5 6 7 8 9 10
do do
......
...@@ -17,7 +17,7 @@ test_expect_success "ipfs daemon --init launches" ' ...@@ -17,7 +17,7 @@ test_expect_success "ipfs daemon --init launches" '
# output. but we can't yet compare it because we dont have the peer ID (config) # output. but we can't yet compare it because we dont have the peer ID (config)
test_expect_success "initialization ended" ' test_expect_success "initialization ended" '
IPFS_PID=$! && IPFS_PID=$! &&
test_wait_output_n_lines_20_sec actual_init 6 test_wait_output_n_lines_60_sec actual_init 6
' '
# this is lifted straight from t0020-init.sh # this is lifted straight from t0020-init.sh
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论