We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21445a7 commit 15b99aeCopy full SHA for 15b99ae
tests/integration/table_scan_error_test.go
@@ -7,6 +7,7 @@ import (
7
"context"
8
"fmt"
9
"os"
10
+ "strings"
11
"testing"
12
13
"github.com/stretchr/testify/require"
@@ -74,5 +75,11 @@ func TestIssue847ScanError(t *testing.T) {
74
75
return res.Err()
76
}, table.WithTxSettings(table.TxSettings(table.WithSnapshotReadOnly())))
77
require.Error(t, err)
- require.ErrorContains(t, err, "Unexpected token 'SELICT'")
78
+ if !strings.Contains(
79
+ err.Error(), "Unexpected token 'SELICT'", /*antlr3 parser*/
80
+ ) && !strings.Contains(
81
+ err.Error(), "mismatched input 'SELICT'", /*antlr4 parser*/
82
+ ) {
83
+ t.Fail()
84
+ }
85
}
0 commit comments