Skip to content

Commit 8ff2d09

Browse files
committed
ok
1 parent 74ed317 commit 8ff2d09

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

test/sharness/t0027-rotate.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@ ipfs id -f="<pubkey>" > second_key &&
2727
'
2828

2929
test_expect_success "checking ID" '
30-
ipfs config Identity.PeerID > expected-id &&
31-
ipfs id -f "<id>\n" > actual-id &&
32-
ipfs key list -l | grep self | cut -d " " -f1 > keystore-id &&
33-
test_cmp expected-id actual-id &&
34-
test_cmp expected-id keystore-id
30+
ipfs config Identity.PeerID > expected-id &&
31+
ipfs id -f "<id>\n" > actual-id &&
32+
ipfs key list -l | grep self | cut -d " " -f1 > keystore-id &&
33+
ipfs key list -l | grep oldkey | cut -d " " -f1 | tr -d "\n" > old-keystore-id &&
34+
test_cmp expected-id actual-id &&
35+
test_cmp expected-id keystore-id &&
36+
test_cmp old-keystore-id first_id
3537
'
3638

3739
test_launch_ipfs_daemon

0 commit comments

Comments
 (0)