Skip to content

Commit 002930d

Browse files
committed
Add sharness test for no- prefix
License: MIT Signed-off-by: Jakub Sztandera <[email protected]>
1 parent 96c99d5 commit 002930d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/sharness/t0040-add-and-cat.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,11 @@ test_expect_success "ipfs add --only-hash succeeds" '
373373
echo "unknown content for only-hash" | ipfs add --only-hash -q > oh_hash
374374
'
375375

376+
test_expect_success "'ipfs add --no-pin does not pin" '
377+
echo "ipfs add --no-pin test - fslkfjdlsk" | ipfs add --no-pin -q | head -1 > hash
378+
test_must_fail ipfs pin ls $(cat hash)
379+
'
380+
376381
#TODO: this doesn't work when online hence separated out from test_add_cat_file
377382
test_expect_success "ipfs cat file fails" '
378383
test_must_fail ipfs cat $(cat oh_hash)

0 commit comments

Comments
 (0)