Fix MySQL test to support both MySQL and MariaDB clients

pull/5749/head
Enbiya 11 months ago
parent 4e980fd3ba
commit 7f7110e613

@ -122,9 +122,5 @@ func TestCliTcpTargetConnectMysql(t *testing.T) {
t.Logf("MySQL session output: %s", output)
require.Contains(t, output, "| "+mysqlDbName+" |", "Session did not return expected database query result")
require.True(t,
strings.Contains(output, "mysql>") || strings.Contains(output, "MySQL ["),
"Session did not show MySQL/MariaDB prompt")
t.Log("Successfully connected to MySQL target")
}

Loading…
Cancel
Save