Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort addresses in /id #878

Merged
merged 8 commits into from
Sep 6, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
29 changes: 29 additions & 0 deletions sharness/t0033-ctl-peers.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/bash
kishansagathiya marked this conversation as resolved.
Show resolved Hide resolved

test_description="Test cluster-ctl's peers command"

. lib/test-lib.sh

test_ipfs_init
test_cluster_init

test_expect_success IPFS,CLUSTER "peers ls gives same results always (crdt)" '
ipfs-cluster-ctl peers ls > peers1-crdt.txt
ipfs-cluster-ctl peers ls > peers2-crdt.txt
test_cmp peers1-crdt.txt peers2-crdt.txt
'

cluster_kill
sleep 5
test_cluster_init "" raft

test_expect_success IPFS,CLUSTER "peers ls gives same results always (raft)" '
ipfs-cluster-ctl peers ls > peers1-raft.txt
ipfs-cluster-ctl peers ls > peers2-raft.txt
test_cmp peers1-raft.txt peers2-raft.txt
'

test_clean_ipfs
test_clean_cluster

test_done