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?
Juan Batiz-Benet committed
Nov 18, 2014 at 08:33 UTC
d1ab80224dec1f5da100789b4b315fb8ca9f12a5
2 files changed
+2
-2
test/lib/test-lib.sh
+1
-1
@@ -39,7 +39,7 @@ test_cmp_repeat_10_sec() {
39
test_cmp "$1" "$2"
40
}
41
42
-test_wait_output_n_lines_20_sec() {
42
+test_wait_output_n_lines_60_sec() {
43
echo "$2" >expected_waitn
44
for i in 1 2 3 4 5 6 7 8 9 10
45
do
test/t0060-daemon.sh
+1
-1
@@ -17,7 +17,7 @@ test_expect_success "ipfs daemon --init launches" '
17
# output. but we can't yet compare it because we dont have the peer ID (config)
18
test_expect_success "initialization ended" '
19
IPFS_PID=$! &&
20
- test_wait_output_n_lines_20_sec actual_init 6
20
+ test_wait_output_n_lines_60_sec actual_init 6
21
'
22
23
# this is lifted straight from t0020-init.sh