Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ipfs/kubo
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0332f3dbaa9a
Choose a base ref
...
head repository: ipfs/kubo
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ac7d25c2cc1b
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jun 25, 2015

  1. add test for only-hash to ensure no blocks are added to datastore

    License: MIT
    Signed-off-by: Jeromy <jeromyj@gmail.com>
    whyrusleeping committed Jun 25, 2015
    Copy the full SHA
    53dee3c View commit details
  2. Merge pull request #1423 from ipfs/test/only-hash

    add test for only-hash to ensure no blocks are added to datastore
    jbenet committed Jun 25, 2015
    Copy the full SHA
    ac7d25c View commit details
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/sharness/t0041-add-cat-offline.sh
8 changes: 8 additions & 0 deletions test/sharness/t0041-add-cat-offline.sh
Original file line number Diff line number Diff line change
@@ -45,4 +45,12 @@ test_expect_success "output looks good" '
test_cmp afile out_2
'

test_expect_success "ipfs add --only-hash succeeds" '
echo "unknown content for only-hash" | ipfs add --only-hash -q > oh_hash
'

test_expect_success "ipfs cat file fails" '
test_must_fail ipfs cat $(cat oh_hash)
'

test_done