Skip to content

Commit

Permalink
change unit test to be clearer about the test setup
Browse files Browse the repository at this point in the history
Signed-off-by: deepthi <[email protected]>
  • Loading branch information
deepthi committed Sep 6, 2024
1 parent 77018e9 commit 80a8849
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions go/vt/vtctl/reparentutil/replication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
{
Expand All @@ -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,
},
{
Expand Down

0 comments on commit 80a8849

Please sign in to comment.