From b6d56557c8aeed7f9c1d3fc41a942f57d1a8fc63 Mon Sep 17 00:00:00 2001 From: Kristmann Thorsteinsson <82941273+Manni-99@users.noreply.github.com> Date: Mon, 5 Feb 2024 07:10:56 +0100 Subject: [PATCH] Added test for AnalyzeStrict (#15126) Signed-off-by: Kristmann Thorsteinsson --- go/vt/vtgate/semantics/analyzer_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/go/vt/vtgate/semantics/analyzer_test.go b/go/vt/vtgate/semantics/analyzer_test.go index e222cf619bd..1df1ec7fd87 100644 --- a/go/vt/vtgate/semantics/analyzer_test.go +++ b/go/vt/vtgate/semantics/analyzer_test.go @@ -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) }) }