Skip to content

Commit

Permalink
Merge pull request #60 from ydb-platform/fixautomigratetests
Browse files Browse the repository at this point in the history
test(unit): fix sequential auto migrate path prefix
  • Loading branch information
ImpressionableRaccoon authored Jun 27, 2023
2 parents 0a713ca + b4ade49 commit 489682b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/integration/migrations_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 489682b

Please sign in to comment.