Skip to content

Commit

Permalink
stop test from running on old releases
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Taylor <[email protected]>
  • Loading branch information
systay committed Jun 26, 2024
1 parent b749537 commit 95b4a22
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package aggregation

import (
"fmt"
"math/rand"
"math/rand/v2"
"slices"
"sort"
"strings"
Expand Down Expand Up @@ -71,11 +71,12 @@ func start(t *testing.T) (utils.MySQLCompare, func()) {
}

func TestAggrWithLimit(t *testing.T) {
utils.SkipIfBinaryIsBelowVersion(t, 21, "vtgate")
mcmp, closer := start(t)
defer closer()

for i := range 1000 {
r := rand.Intn(50)
r := rand.IntN(10)
mcmp.Exec(fmt.Sprintf("insert into aggr_test(id, val1, val2) values(%d, 'a', %d)", i, r))
}
mcmp.Exec("select val2, count(*) from aggr_test group by val2 order by count(*), val2 limit 10")
Expand Down

0 comments on commit 95b4a22

Please sign in to comment.