2ce1e02753
- Make license status snapshot non-blocking (revocation check in background) - Speed boot by not awaiting license network and capping editor ready wait - Stop disabling GPU by default on Win packaged builds - Remove external font fetch; bundle local Inter Made-with: Cursor
15 lines
778 B
TypeScript
15 lines
778 B
TypeScript
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\(/);
|
|
});
|