satellite/metabase/metabasetest: fix race while running tests

Change-Id: I4fdb328443617bc9710ee6b9168b31870fe336d9
This commit is contained in:
Michal Niewrzal 2023-02-02 10:21:08 +01:00 committed by Storj Robot
parent bfdc60f3d8
commit 4e0c7b2d90

View File

@ -40,6 +40,7 @@ func RunWithConfigAndMigration(t *testing.T, config metabase.Config, fn func(ctx
defer ctx.Cleanup()
// generate unique application name to filter out full table scan queries from other tests executions
config := config
config.ApplicationName += pgutil.CreateRandomTestingSchemaName(6)
db, err := satellitedbtest.CreateMetabaseDB(ctx, zaptest.NewLogger(t), t.Name(), "M", 0, dbinfo.MetabaseDB, config)
if err != nil {