Skip to content

Commit

Permalink
Refactor e2e as suggested
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
  • Loading branch information
rohit-nayak-ps committed Dec 30, 2024
1 parent 40f4302 commit bc53f51
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions go/test/endtoend/vreplication/global_routing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,7 @@ func (h *grHelpers) rebuildGraphs(t *testing.T, keyspaces []string) {
func TestGlobalRouting(t *testing.T) {
h := grHelpers{t}
exp := *h.getExpectations()
testCases := []grTestCase{
{unshardedHasVSchema: false, markAsGlobal: true},
{unshardedHasVSchema: false, markAsGlobal: false},
{unshardedHasVSchema: true, markAsGlobal: true},
{unshardedHasVSchema: true, markAsGlobal: false},
}
for _, tc := range testCases {
funcs := exp[tc]
for tc, funcs := range exp {
require.NotNil(t, funcs)
testGlobalRouting(t, tc.markAsGlobal, tc.unshardedHasVSchema, funcs)
}
Expand Down

0 comments on commit bc53f51

Please sign in to comment.