Skip to content

Commit c5d54a3

Browse files
committed
fix test
1 parent 27c37fb commit c5d54a3

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/distributedDatabaseTest.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,11 @@ helper.describePglite('distributed database mode', { timeout: 20000 }, function
335335
expect(stats.totalCount).toBe(1)
336336
})
337337

338-
it('should construct schema with the yugabytedb backend (no partitioning, no advisory locks)', async function () {
338+
// Postgres-only: the yugabytedb profile keeps DEFERRABLE foreign keys (Yugabyte supports them),
339+
// which a real CockroachDB cluster rejects, so forcing this profile only makes sense on Postgres,
340+
// where every profile's DDL is valid. (The cockroachdb profile above is safe everywhere because it
341+
// only removes features.)
342+
helper.itPostgresOnly('should construct schema with the yugabytedb backend (no partitioning, no advisory locks)', async function () {
339343
// Exercises the noTablePartitioning + noAdvisoryLocks construction path on plain Postgres by
340344
// selecting the yugabytedb backend, whose only flags are those two (both PostgreSQL-compatible,
341345
// they just remove features). The compatibility flags are derived from `backend` and are not

0 commit comments

Comments
 (0)