@@ -54,7 +54,7 @@ func GetTestClusterOption(storeType, driver string) *TestBaseOptions {
5454// GetCassandraTestClusterOption returns test options
5555func GetCassandraTestClusterOption () * TestBaseOptions {
5656 return & TestBaseOptions {
57- DBName : "test_" + GenerateRandomDBName (3 ),
57+ DBName : GenerateRandomDBName (),
5858 DBHost : environment .GetCassandraAddress (),
5959 DBPort : environment .GetCassandraPort (),
6060 SchemaDir : testCassandraSchemaDir ,
@@ -66,7 +66,7 @@ func GetCassandraTestClusterOption() *TestBaseOptions {
6666func GetMySQLTestClusterOption () * TestBaseOptions {
6767 return & TestBaseOptions {
6868 SQLDBPluginName : mysql .PluginName ,
69- DBName : "test_" + GenerateRandomDBName (3 ),
69+ DBName : GenerateRandomDBName (),
7070 DBUsername : testMySQLUser ,
7171 DBPassword : testMySQLPassword ,
7272 DBHost : environment .GetMySQLAddress (),
@@ -94,7 +94,7 @@ func GetPostgreSQLTestClusterOption(
9494 }
9595 return & TestBaseOptions {
9696 SQLDBPluginName : pluginName ,
97- DBName : "test_" + GenerateRandomDBName (3 ),
97+ DBName : GenerateRandomDBName (),
9898 DBUsername : testPostgreSQLUser ,
9999 DBPassword : testPostgreSQLPassword ,
100100 DBHost : environment .GetPostgreSQLAddress (),
@@ -109,7 +109,7 @@ func GetPostgreSQLTestClusterOption(
109109func GetSQLiteFileTestClusterOption () * TestBaseOptions {
110110 return & TestBaseOptions {
111111 SQLDBPluginName : sqlite .PluginName ,
112- DBName : filepath .Join (os .TempDir (), "test_" + GenerateRandomDBName (3 )), // put files in temp to avoid cluttering the project
112+ DBName : filepath .Join (os .TempDir (), GenerateRandomDBName ()), // put files in temp to avoid cluttering the project
113113 DBUsername : testSQLiteUser ,
114114 DBPassword : testSQLitePassword ,
115115 DBHost : environment .GetLocalhostIP (),
@@ -129,7 +129,7 @@ func GetSQLiteFileTestClusterOption() *TestBaseOptions {
129129func GetSQLiteMemoryTestClusterOption () * TestBaseOptions {
130130 return & TestBaseOptions {
131131 SQLDBPluginName : sqlite .PluginName ,
132- DBName : "test_" + GenerateRandomDBName (3 ),
132+ DBName : GenerateRandomDBName (),
133133 DBUsername : testSQLiteUser ,
134134 DBPassword : testSQLitePassword ,
135135 DBHost : environment .GetLocalhostIP (),
0 commit comments