From 6cd068d421726da9718c47c4dd6cd6f208ff5bc5 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 10 Jun 2014 15:46:36 +0200 Subject: [PATCH] Cluster test: unit 03, check epochs correctness. --- tests/cluster/tests/03-failover-loop.tcl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/cluster/tests/03-failover-loop.tcl b/tests/cluster/tests/03-failover-loop.tcl index bee035e2..707c3688 100644 --- a/tests/cluster/tests/03-failover-loop.tcl +++ b/tests/cluster/tests/03-failover-loop.tcl @@ -89,3 +89,9 @@ while {[incr iterations -1]} { assert {$err eq $val} } } + +test "Post condition: current_epoch >= my_epoch everywhere" { + foreach_redis_id id { + assert {[CI $id cluster_current_epoch] >= [CI $id cluster_my_epoch]} + } +} -- GitLab