Skip to content

Commit

Permalink
tests: Make TestRowCount stable regardless of the number of keyspaces
Browse files Browse the repository at this point in the history
Signed-off-by: yoheimuta <[email protected]>
  • Loading branch information
yoheimuta committed Dec 7, 2022
1 parent 2f7adbc commit 3afc402
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/vt/vtgate/endtoend/row_count_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ import (
"github.com/stretchr/testify/require"

"vitess.io/vitess/go/mysql"
"vitess.io/vitess/go/test/endtoend/utils"
)

func TestRowCount(t *testing.T) {
ctx := context.Background()
conn, err := mysql.Connect(ctx, &vtParams)
require.NoError(t, err)
defer conn.Close()
utils.Exec(t, conn, "use ks")
type tc struct {
query string
expected int
Expand Down

0 comments on commit 3afc402

Please sign in to comment.