import assert from 'node:assert/strict'; import fs from 'node:fs'; import path from 'node:path'; import test from 'node:test'; import { fileURLToPath } from 'node:url'; const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..', '..', '..'); /** Регресс: `await` сетевой проверки отзыва блокировал IPC `license.getStatus` до 8 с без доступа к серверу. */ void test('licenseService: getStatus не ждёт await проверки отзыва', () => { const src = fs.readFileSync(path.join(root, 'app', 'main', 'license', 'licenseService.ts'), 'utf8'); assert.match(src, /void this\.maybeRefreshRemoteRevocation\(/); assert.doesNotMatch(src, /await this\.maybeRefreshRemoteRevocation\(/); });