@cryptotaxi247 / kubo / commits / d2931d70a

fix test now that dag batches can more properly fail

License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>

Jeromy committed Feb 20, 2016 at 16:21 UTC d2931d70a6060cf8c77d9b82a283e9288d68feb5
1 file changed +6 -6
test/sharness/t0081-repo-pinning.sh
+6 -6
@@ -238,9 +238,9 @@ test_expect_success "some are no longer there" '
238 '
239
240 test_expect_success "recursive pin fails without objects" '
241 - ipfs pin rm "$HASH_DIR1" &&
242 - test_must_fail ipfs pin add -r "$HASH_DIR1" --timeout=500ms 2>err_expected8 &&
243 - grep "context deadline exceeded" err_expected8 ||
241 + ipfs pin rm -r=false "$HASH_DIR1" &&
242 + test_must_fail ipfs pin add -r "$HASH_DIR1" 2>err_expected8 &&
243 + grep "pin: failed to fetch all nodes" err_expected8 ||
244 test_fsh cat err_expected8
245 '
246
@@ -275,9 +275,9 @@ test_expect_success "test add nopin dir" '
275 FICTIONAL_HASH="QmXV4f9v8a56MxWKBhP3ETsz4EaafudU1cKfPaaJnenc48"
276 test_launch_ipfs_daemon
277 test_expect_success "test unpinning a hash that's not pinned" "
278 - test_expect_code 1 ipfs pin rm $FICTIONAL_HASH --timeout=5s
279 - test_expect_code 1 ipfs pin rm $FICTIONAL_HASH/a --timeout=5s
280 - test_expect_code 1 ipfs pin rm $FICTIONAL_HASH/a/b --timeout=5s
278 + test_expect_code 1 ipfs pin rm $FICTIONAL_HASH --timeout=2s
279 + test_expect_code 1 ipfs pin rm $FICTIONAL_HASH/a --timeout=2s
280 + test_expect_code 1 ipfs pin rm $FICTIONAL_HASH/a/b --timeout=2s
281 "
282 test_kill_ipfs_daemon
283