Skip to content

Commit

Permalink
PMM-11180 fix tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
BupycHuk committed Oct 17, 2024
1 parent e279b4e commit dca47ed
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions agent/runner/actions/mysql_show_index_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,13 @@ func TestMySQLShowIndex(t *testing.T) {
assert.Equal(t, []interface{}{"city", "0", "PRIMARY", "1", "ID", "A", "CARDINALITY", nil, nil, "", "BTREE", "", ""}, actual[1])
assert.Equal(t, []interface{}{"city", "1", "CountryCode", "1", "CountryCode", "A", "CARDINALITY", nil, nil, "", "BTREE", "", ""}, actual[2])

case mySQLVersion.String() == "8.0":
default: // >= MySQL 8.0
assert.Equal(t, []interface{}{
"Table", "Non_unique", "Key_name", "Seq_in_index", "Column_name", "Collation", "Cardinality",
"Sub_part", "Packed", "Null", "Index_type", "Comment", "Index_comment", "Visible", "Expression",
}, actual[0])
assert.Equal(t, []interface{}{"city", "0", "PRIMARY", "1", "ID", "A", "CARDINALITY", nil, nil, "", "BTREE", "", "", "YES", nil}, actual[1])
assert.Equal(t, []interface{}{"city", "1", "CountryCode", "1", "CountryCode", "A", "CARDINALITY", nil, nil, "", "BTREE", "", "", "YES", nil}, actual[2])

default:
t.Fatal("Unhandled version.")
}
})

Expand Down

0 comments on commit dca47ed

Please sign in to comment.