Skip to content

Commit 433dbac

Browse files
committed
chore(testcontainers): format the N-shard fixture self-test
1 parent 3675e3a commit 433dbac

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

internal-packages/testcontainers/src/nShardFixture.test.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@ import { makeNShardRunOpsPostgresTest } from "./index.js";
33

44
const nShardTest = makeNShardRunOpsPostgresTest(2);
55

6-
nShardTest("builds 4 distinct databases (legacy + new + 2 gen-2 shards)", async ({
7-
legacyUri,
8-
newUri,
9-
shardUris,
10-
}) => {
11-
expect(shardUris).toHaveLength(2);
12-
const all = [legacyUri, newUri, ...shardUris];
13-
expect(new Set(all).size).toBe(4);
14-
});
6+
nShardTest(
7+
"builds 4 distinct databases (legacy + new + 2 gen-2 shards)",
8+
async ({ legacyUri, newUri, shardUris }) => {
9+
expect(shardUris).toHaveLength(2);
10+
const all = [legacyUri, newUri, ...shardUris];
11+
expect(new Set(all).size).toBe(4);
12+
}
13+
);
1514

1615
nShardTest("each gen-2 clone carries the run-ops subset schema", async ({ shardPrismas }) => {
1716
expect(shardPrismas).toHaveLength(2);

0 commit comments

Comments
 (0)