From bc53f516255b19adcc289d59de1df6ba8e46b192 Mon Sep 17 00:00:00 2001 From: Rohit Nayak Date: Mon, 30 Dec 2024 17:21:40 +0100 Subject: [PATCH] Refactor e2e as suggested Signed-off-by: Rohit Nayak --- go/test/endtoend/vreplication/global_routing_test.go | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/go/test/endtoend/vreplication/global_routing_test.go b/go/test/endtoend/vreplication/global_routing_test.go index f1b9283387f..43fd2887e0a 100644 --- a/go/test/endtoend/vreplication/global_routing_test.go +++ b/go/test/endtoend/vreplication/global_routing_test.go @@ -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) }