From a88a057a1faff1ffe6296b305cca4f0936c29ed8 Mon Sep 17 00:00:00 2001 From: antirez Date: Wed, 19 Feb 2014 10:08:49 +0100 Subject: [PATCH] Sentinel test: check that role matches at end of 00-base. --- tests/sentinel-tests/00-base.tcl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/sentinel-tests/00-base.tcl b/tests/sentinel-tests/00-base.tcl index a2725f8b..4526d565 100644 --- a/tests/sentinel-tests/00-base.tcl +++ b/tests/sentinel-tests/00-base.tcl @@ -161,3 +161,7 @@ test "Failover works if we configure for absolute agreement" { } } +test "New master [join $addr {:}] role matches" { + assert {[RI $master_id role] eq {master}} +} +