Skip to content

Commit

Permalink
Added test for AnalyzeStrict (#15126)
Browse files Browse the repository at this point in the history
Signed-off-by: Kristmann Thorsteinsson <[email protected]>
  • Loading branch information
Manni-99 authored Feb 5, 2024
1 parent 961f70f commit b6d5655
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions go/vt/vtgate/semantics/analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1576,10 +1576,8 @@ func TestUpdateErrors(t *testing.T) {
parse, err := sqlparser.NewTestParser().Parse(test.query)
require.NoError(t, err)

st, err := Analyze(parse, "d", fakeSchemaInfo())
if err == nil {
err = st.NotUnshardedErr
}
_, err = AnalyzeStrict(parse, "d", fakeSchemaInfo())

assert.EqualError(t, err, test.expectedError)
})
}
Expand Down

0 comments on commit b6d5655

Please sign in to comment.