From eb53fc7c3460f035bca4d62609a37c1f239bcebb Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Wed, 10 Mar 2021 17:34:13 -0800 Subject: [PATCH] test(sharness): pass correct timeout format to go-timeout It takes a number, not a duration. Unfortunately, it will _also_ exit with a status of 1 in this case so the test passes. --- test/sharness/t0275-cid-security.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/sharness/t0275-cid-security.sh b/test/sharness/t0275-cid-security.sh index 34e6e3192..6bf3a90ca 100755 --- a/test/sharness/t0275-cid-security.sh +++ b/test/sharness/t0275-cid-security.sh @@ -78,7 +78,7 @@ test_expect_success "add block linking to insecure" ' ' test_expect_success "ipfs cat fails with code 1 and not timeout" ' - test_expect_code 1 go-timeout 1s ipfs cat QmVpsktzNeJdfWEpyeix93QJdQaBSgRNxebSbYSo9SQPGx + test_expect_code 1 go-timeout 1 ipfs cat QmVpsktzNeJdfWEpyeix93QJdQaBSgRNxebSbYSo9SQPGx ' test_kill_ipfs_daemon