Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Add vplayer test for generated columns
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
  • Loading branch information
rohit-nayak-ps committed Jun 7, 2021
1 parent 38de519 commit 7789c30
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -2619,6 +2619,12 @@ func TestVReplicationLogs(t *testing.T) {
}

func TestGeneratedColumns(t *testing.T) {
flavor := strings.ToLower(env.Flavor)
// Disable tests on percona (which identifies as mysql56) and mariadb platforms in CI since they
// generated columns support was added in 5.7 and mariadb added mysql compatible generated columns in 10.2
if !strings.Contains(flavor, "mysql57") && !strings.Contains(flavor, "mysql80") {
return
}
defer deleteTablet(addTablet(100))

execStatements(t, []string{
Expand Down Expand Up @@ -2694,7 +2700,6 @@ func TestGeneratedColumns(t *testing.T) {
tcases.output,
}
expectNontxQueries(t, output)
time.Sleep(1 * time.Second)
if tcases.table != "" {
expectData(t, tcases.table, tcases.data)
}
Expand Down

0 comments on commit 7789c30

Please sign in to comment.