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) }) }