Skip to content

Commit

Permalink
fix(commands): print consistent addresses in ipfs id
Browse files Browse the repository at this point in the history
Consistently append `/p2p/QmMyId` to addresses when calling `ipfs id Me` and `ipfs id NotMe`.

Fixes ipfs#7378.
  • Loading branch information
Stebalien authored and Walter Beegle committed Jun 8, 2020
1 parent 3c530c7 commit 09b5ade
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions test/sharness/t0140-swarm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,20 +128,12 @@ test_expect_success "ipfs id is consistent for node 0" '
ipfsi 0 id > 0see0 &&
test_cmp 1see0 0see0
'

test_expect_success "ipfs id is consistent for node 1" '
ipfsi 0 id "$(iptb attr get 1 id)" > 0see1 &&
ipfsi 1 id > 1see1 &&
test_cmp 0see1 1see1
'

test_expect_success "addresses contain /p2p/..." '
test_should_contain "/p2p/$(iptb attr get 1 id)\"" 0see1 &&
test_should_contain "/p2p/$(iptb attr get 1 id)\"" 1see1 &&
test_should_contain "/p2p/$(iptb attr get 0 id)\"" 1see0 &&
test_should_contain "/p2p/$(iptb attr get 0 id)\"" 0see0
'

test_expect_success "stopping cluster" '
iptb stop
'
Expand Down

0 comments on commit 09b5ade

Please sign in to comment.