Skip to content

Commit

Permalink
test: remove time-out script, use go-timeout instead
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
  • Loading branch information
Kubuxu committed Aug 31, 2016
1 parent 9a907cc commit f025327
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 89 deletions.
1 change: 0 additions & 1 deletion test/bin/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,3 @@
!checkflags
!continueyn
!verify-go-fmt.sh
!time-out
83 changes: 0 additions & 83 deletions test/bin/time-out

This file was deleted.

10 changes: 5 additions & 5 deletions test/sharness/t0500-issues-and-regressions-offline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ test_description="Tests for various fixed issues and regressions."

test_expect_success "ipfs init with occupied input works - #2748" '
export IPFS_PATH="ipfs_path"
echo "" | time-out ipfs init &&
echo "" | go-timeout 10 ipfs init &&
rm -rf ipfs_path
'
test_init_ipfs

test_expect_success "ipfs cat --help succeeds with no input" '
time-out ipfs cat --help
test_expect_success "ipfs cat --help succeeds when input remains open" '
yes | go-timeout 1 ipfs cat --help
'

test_expect_success "ipfs pin ls --help succeeds with no input" '
time-out ipfs pin ls --help
test_expect_success "ipfs pin ls --help succeeds when input remains open" '
yes | go-timeout 1 ipfs pin ls --help
'

test_expect_success "ipfs add on 1MB from stdin woks" '
Expand Down

0 comments on commit f025327

Please sign in to comment.