Skip to content

Commit 15b99ae

Browse files
committed
Fixed test of wrong keyword 'SELICT'
1 parent 21445a7 commit 15b99ae

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/integration/table_scan_error_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import (
77
"context"
88
"fmt"
99
"os"
10+
"strings"
1011
"testing"
1112

1213
"github.com/stretchr/testify/require"
@@ -74,5 +75,11 @@ func TestIssue847ScanError(t *testing.T) {
7475
return res.Err()
7576
}, table.WithTxSettings(table.TxSettings(table.WithSnapshotReadOnly())))
7677
require.Error(t, err)
77-
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+
}
7885
}

0 commit comments

Comments
 (0)