diff --git a/gitnexus/test/integration/lbug-interrupted-checkpoint-recovery.test.ts b/gitnexus/test/integration/lbug-interrupted-checkpoint-recovery.test.ts index dda6728d2..d2dea28cf 100644 --- a/gitnexus/test/integration/lbug-interrupted-checkpoint-recovery.test.ts +++ b/gitnexus/test/integration/lbug-interrupted-checkpoint-recovery.test.ts @@ -149,8 +149,9 @@ describe('interrupted-checkpoint recovery (pooled read path self-heal)', () => { 'utf-8', ), ).version as string; - const minor = Number(engineVersion.split('.')[1]); - if (Number.isFinite(minor) && minor < 19) { + const [major, minor] = engineVersion.split('.').map((part) => Number(part)); + // Skip only 0.x below 0.19. A 1.0.0 pin is newer than 0.19 and must run. + if (Number.isFinite(major) && Number.isFinite(minor) && major === 0 && minor < 19) { ctx.skip(); } diff --git a/gitnexus/test/unit/lbug-direct-forced-refusal-heal.test.ts b/gitnexus/test/unit/lbug-direct-forced-refusal-heal.test.ts index d752ba482..85042b2ed 100644 --- a/gitnexus/test/unit/lbug-direct-forced-refusal-heal.test.ts +++ b/gitnexus/test/unit/lbug-direct-forced-refusal-heal.test.ts @@ -9,7 +9,7 @@ * mocked native layer so CI enforces it on the 0.18.3 pin too (where no real * engine emits the refusal). */ -import { afterAll, afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import fs from 'node:fs/promises'; import os from 'node:os'; import path from 'node:path'; @@ -115,9 +115,6 @@ describe('direct adapter self-heals a refused read-only probe (forced refusal)', afterEach(async () => { await closeLbug().catch(() => {}); - }); - - afterAll(async () => { if (tmpDir) await fs.rm(tmpDir, { recursive: true, force: true }); }); diff --git a/gitnexus/test/unit/lbug-pool-forced-refusal-heal.test.ts b/gitnexus/test/unit/lbug-pool-forced-refusal-heal.test.ts index 34c9e2959..9b9c2b9dd 100644 --- a/gitnexus/test/unit/lbug-pool-forced-refusal-heal.test.ts +++ b/gitnexus/test/unit/lbug-pool-forced-refusal-heal.test.ts @@ -10,7 +10,7 @@ * self-heal — writable open, probe, CHECKPOINT, read-only retry — regardless * of which engine binary is installed. */ -import { afterAll, afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; +import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'; import fs from 'node:fs/promises'; import os from 'node:os'; import path from 'node:path'; @@ -116,9 +116,6 @@ describe('pool adapter self-heals a refused read-only open (forced refusal)', () afterEach(async () => { await closeLbug(REPO).catch(() => {}); - }); - - afterAll(async () => { if (tmpDir) await fs.rm(tmpDir, { recursive: true, force: true }); });