Skip to content

Commit 13c0a29

Browse files
committed
test: fix the grep in t0046
1 parent c46006b commit 13c0a29

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/sharness/t0046-id-hash.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ test_expect_success "ipfs add succeeds with identity hash" '
2525
'
2626

2727
test_expect_success "content not actually added" '
28-
ipfs refs local | fgrep -q -v $HASH
28+
ipfs refs local > locals
29+
test_should_not_contain $HASH locals
2930
'
3031

3132
test_expect_success "but can fetch it anyway" '
@@ -98,7 +99,8 @@ test_expect_success "ipfs add succeeds with identity hash and --nocopy" '
9899
'
99100

100101
test_expect_success "content not actually added (filestore enabled)" '
101-
ipfs refs local | fgrep -q -v $HASH
102+
ipfs refs local > locals
103+
test_should_not_contain $HASH locals
102104
'
103105

104106
test_expect_success "but can fetch it anyway (filestore enabled)" '

0 commit comments

Comments
 (0)