From b4ade497ccdff1e9d7ee05d8d46f14e658320af6 Mon Sep 17 00:00:00 2001 From: Vadim Vladimirov Date: Wed, 28 Jun 2023 04:11:48 +0900 Subject: [PATCH] test(unit): fix sequential auto migrate path prefix --- tests/integration/migrations_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/integration/migrations_test.go b/tests/integration/migrations_test.go index 9cc5e1f..404960c 100644 --- a/tests/integration/migrations_test.go +++ b/tests/integration/migrations_test.go @@ -28,11 +28,13 @@ func TestSequentialAutoMigrate(t *testing.T) { t.Skip("skip test '" + t.Name() + "' without env 'YDB_CONNECTION_STRING'") } + pathPrefix := t.Name() + for i := 0; i < 5; i++ { t.Run("", func(t *testing.T) { db, err := gorm.Open( ydb.Open(dsn, - ydb.WithTablePathPrefix(t.Name()), + ydb.WithTablePathPrefix(pathPrefix), ), ) require.NoError(t, err)