Skip to content

Commit ed30ffc

Browse files
authored
fix: add 5-level path resolution for deeply nested test packages (#1850)
1 parent 86edaee commit ed30ffc

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

shared/platform/testdb/pgx.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ func applyMigrationsWithPgx(t *testing.T, pool *pgxpool.Pool, service string) {
123123
filepath.Join("..", "..", "services", service, "migrations"),
124124
filepath.Join("..", "..", "..", "services", service, "migrations"),
125125
filepath.Join("..", "..", "..", "..", "services", service, "migrations"),
126+
filepath.Join("..", "..", "..", "..", "..", "services", service, "migrations"),
126127
}
127128

128129
for _, path := range possiblePaths {
@@ -214,6 +215,7 @@ func applyMigrationsToSchema(t *testing.T, pool *pgxpool.Pool, service string, s
214215
filepath.Join("..", "..", "services", service, "migrations"),
215216
filepath.Join("..", "..", "..", "services", service, "migrations"),
216217
filepath.Join("..", "..", "..", "..", "services", service, "migrations"),
218+
filepath.Join("..", "..", "..", "..", "..", "services", service, "migrations"),
217219
}
218220

219221
for _, path := range possiblePaths {

0 commit comments

Comments
 (0)