From f93b5ac8e4fdd5c39635a10d8740ea9e7c827311 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Sun, 2 Aug 2026 07:42:57 +0000 Subject: [PATCH] test(cli): focus adaptive PostgREST on consumer behaviour --- .../testdeno/test-adaptive-journal-postgrest.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/apps/cli/testdeno/test-adaptive-journal-postgrest.ts b/src/apps/cli/testdeno/test-adaptive-journal-postgrest.ts index 7a618536..5bb253d1 100644 --- a/src/apps/cli/testdeno/test-adaptive-journal-postgrest.ts +++ b/src/apps/cli/testdeno/test-adaptive-journal-postgrest.ts @@ -9,12 +9,7 @@ import { sanitiseCatStdout, } from "./helpers/cli.ts"; import { applyRemoteSyncSettings, generateSetupUriFromSettings, initSettingsFile } from "./helpers/settings.ts"; -import { - type PostgRESTFixture, - readPostgRESTAdaptiveRowCounts, - startPostgREST, - stopPostgREST, -} from "./helpers/docker.ts"; +import { type PostgRESTFixture, startPostgREST, stopPostgREST } from "./helpers/docker.ts"; const BINARY_TEST_BYTES = 2 * 1024 * 1024; @@ -187,14 +182,6 @@ Deno.test("e2e: two CLI vaults synchronise through Adaptive Journal PostgREST", typeof status.estimatedSize === "number" && status.estimatedSize > 0, `PostgREST remote status did not report a positive size: ${JSON.stringify(status)}` ); - - if (shouldStartDocker) { - const counts = await readPostgRESTAdaptiveRowCounts(fixture.vaultId); - assertEquals(counts.manifests, 1); - assert(counts.chunks > 0, `PostgREST did not persist Chunk rows: ${JSON.stringify(counts)}`); - assert(counts.writers >= 2, `PostgREST did not preserve both Writer streams: ${JSON.stringify(counts)}`); - assert(counts.commits >= 2, `PostgREST did not persist Commit Bundles: ${JSON.stringify(counts)}`); - } } finally { if (shouldStartDocker && !keepDocker) { await stopPostgREST().catch(() => {});