Skip to content

Commit

Permalink
test: fix test expectation
Browse files Browse the repository at this point in the history
Signed-off-by: Harshit Gangal <[email protected]>
  • Loading branch information
harshit-gangal committed Jan 28, 2025
1 parent d5c2934 commit 4500821
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions go/vt/vtgate/schema/tracker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -258,29 +258,29 @@ func TestViewsTracking(t *testing.T) {
testcases := []testCases{{
testName: "initial view load",
expView: map[string]string{
"prior": "select 1 from tbl"},
"prior": "select 1 from ks.tbl"},
}, {
testName: "new view t1, V1",
updView: []string{"t1", "V1"},
expView: map[string]string{
"t1": "select 1 from tbl1",
"V1": "select 1 from tbl2",
"prior": "select 1 from tbl"},
"t1": "select 1 from ks.tbl1",
"V1": "select 1 from ks.tbl2",
"prior": "select 1 from ks.tbl"},
}, {
testName: "delete prior, updated V1 and new t3",
updView: []string{"prior", "V1", "t3"},
expView: map[string]string{
"t1": "select 1 from tbl1",
"V1": "select 1, 2 from tbl2",
"t3": "select 1 from tbl3"},
"t1": "select 1 from ks.tbl1",
"V1": "select 1, 2 from ks.tbl2",
"t3": "select 1 from ks.tbl3"},
}, {
testName: "new t4",
updView: []string{"t4"},
expView: map[string]string{
"t1": "select 1 from tbl1",
"V1": "select 1, 2 from tbl2",
"t3": "select 1 from tbl3",
"t4": "select 1 from tbl4"},
"t1": "select 1 from ks.tbl1",
"V1": "select 1, 2 from ks.tbl2",
"t3": "select 1 from ks.tbl3",
"t4": "select 1 from ks.tbl4"},
}}

testTracker(t, false, schemaDefResult, testcases)
Expand Down

0 comments on commit 4500821

Please sign in to comment.