Skip to content

Commit

Permalink
test(unit): fix sequential auto migrate path prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
ImpressionableRaccoon committed Jun 27, 2023
1 parent 0a713ca commit b4ade49
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 b4ade49

Please sign in to comment.