Fix sharness init with --peers test

[AddrInfosFromP2pAddrs](https://github.com/libp2p/go-libp2p-core/blob/master/peer/addrinfo.go#L25)
might not keep order therefore the tests flip.
This commit is contained in:
Hector Sanjuan 2019-08-06 19:08:12 +02:00
parent 7136d143fa
commit 128242762c

View File

@ -10,7 +10,8 @@ test_expect_success "cluster-service init with --peers succeeds and fills peerst
echo $PEER1 >> testPeerstore
echo $PEER2 >> testPeerstore
ipfs-cluster-service --config "test-config" init --peers $PEER1,$PEER2 &&
test_cmp testPeerstore test-config/peerstore
grep -q $PEER1 test-config/peerstore &&
grep -q $PEER2 test-config/peerstore
'
test_expect_success "cluster-service init without --peers succeeds and creates empty peerstore" '