test(sharness): fix tests for commands lib update
We no longer spit out the annoying http error.
Steven Allen committed
Sep 30, 2019 at 18:47 UTC
8e346a993e1bdee0b49dba4f4557a4d9d7705b9f
1 file changed
+3
-4
test/sharness/t0040-add-and-cat.sh
+3
-4
@@ -494,7 +494,6 @@ test_add_cat_expensive() {
494
}
495
496
test_add_named_pipe() {
497
- err_prefix=$1
497
test_expect_success "useful error message when adding a named pipe" '
498
mkfifo named-pipe &&
499
test_expect_code 1 ipfs add named-pipe 2>actual &&
@@ -510,7 +509,7 @@ test_add_named_pipe() {
509
mkfifo named-pipe-dir/named-pipe &&
510
STAT=$(generic_stat named-pipe-dir/named-pipe) &&
511
test_expect_code 1 ipfs add -r named-pipe-dir 2>actual &&
513
- printf "Error:$err_prefix unrecognized file type for named-pipe-dir/named-pipe: $STAT\n" >expected &&
512
+ printf "Error: unrecognized file type for named-pipe-dir/named-pipe: $STAT\n" >expected &&
513
rm named-pipe-dir/named-pipe &&
514
rmdir named-pipe-dir &&
515
test_cmp expected actual
@@ -796,7 +795,7 @@ test_add_cat_expensive "--cid-version=1" "bafybeidkj5ecbhrqmzrcee2rw7qwsx24z3364
795
# encoded with the blake2b-256 hash funtion
796
test_add_cat_expensive '--hash=blake2b-256' "bafykbzaceb26fnq5hz5iopzamcb4yqykya5x6a4nvzdmcyuu4rj2akzs3z7r6"
797
799
-test_add_named_pipe " Post http://$API_ADDR/api/v0/add?chunker=size-262144&encoding=json&hash=sha2-256&inline-limit=32&pin=true&progress=true&recursive=true&stream-channels=true:"
798
+test_add_named_pipe
799
800
test_add_pwd_is_symlink
801
@@ -827,7 +826,7 @@ test_expect_success "ipfs cat file fails" '
826
test_must_fail ipfs cat $(cat oh_hash)
827
'
828
830
-test_add_named_pipe ""
829
+test_add_named_pipe
830
831
test_add_pwd_is_symlink
832