summaryrefslogtreecommitdiffstats
path: root/tests/cluster.rc
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cluster.rc')
-rwxr-xr-xtests/cluster.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/cluster.rc b/tests/cluster.rc
index 1e42426f630..efeaa35636d 100755
--- a/tests/cluster.rc
+++ b/tests/cluster.rc
@@ -106,3 +106,6 @@ function define_clis() {
done
}
+function peer_count() {
+ $CLI_1 peer status | grep 'Peer in Cluster (Connected)' | wc -l
+}