Skip to content

Commit

Permalink
test: fix tests for downgrades
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <manan@planetscale.com>
  • Loading branch information
GuptaManan100 committed Dec 21, 2023
1 parent bbcb6ec commit 5c36a3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions go/test/endtoend/vtgate/queries/kill/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ func TestMain(m *testing.M) {
flag.Parse()

exitCode := func() int {
vtgateVersion, _ := cluster.GetMajorVersion("vtgate")
if vtgateVersion < 18 {
return 0
}
clusterInstance = cluster.NewCluster(cell, hostname)
defer clusterInstance.Teardown()

Expand Down
1 change: 1 addition & 0 deletions go/test/endtoend/vtgate/queries/random/random_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,7 @@ func TestRandom(t *testing.T) {

// these queries were previously failing and have now been fixed
func TestBuggyQueries(t *testing.T) {
utils.SkipIfBinaryIsBelowVersion(t, 18, "vtgate")
mcmp, closer := start(t)
defer closer()

Expand Down

0 comments on commit 5c36a3e

Please sign in to comment.