From 80a88494b04860f3332820b24c8ad16f9f629b15 Mon Sep 17 00:00:00 2001 From: deepthi Date: Fri, 6 Sep 2024 15:57:56 -0700 Subject: [PATCH] change unit test to be clearer about the test setup Signed-off-by: deepthi --- go/vt/vtctl/reparentutil/replication_test.go | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/go/vt/vtctl/reparentutil/replication_test.go b/go/vt/vtctl/reparentutil/replication_test.go index bd244c369b9..666b41859cf 100644 --- a/go/vt/vtctl/reparentutil/replication_test.go +++ b/go/vt/vtctl/reparentutil/replication_test.go @@ -176,12 +176,7 @@ func TestFindValidEmergencyReparentCandidates(t *testing.T) { }, }, }, - primaryStatusMap: map[string]*replicationdatapb.PrimaryStatus{ - "p1": { - Position: "MySQL56/3E11FA47-71CA-11E1-9E33-C80AA9429562:1-5", - }, - }, - expected: []string{"r1", "r2", "p1"}, + expected: []string{"r1", "r2"}, shouldErr: false, }, { @@ -200,12 +195,7 @@ func TestFindValidEmergencyReparentCandidates(t *testing.T) { }, }, }, - primaryStatusMap: map[string]*replicationdatapb.PrimaryStatus{ - "p1": { - Position: "MySQL56/3E11FA47-71CA-11E1-9E33-C80AA9429562:1-5", - }, - }, - expected: []string{"p1"}, + expected: []string{}, shouldErr: false, }, {