mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-21 05:01:26 -07:00
test: cut low-value tests, rewrite the rest around behavior, parallelize lanes (#285)
This commit is contained in:
1 parent
4b6842d034
commit
b48083ddd8
368 files changed
+18045
-60331
No files matched your search
@@ -3,11 +3,7 @@ import test, { after } from 'node:test';
|
||||
import { DEFAULT_CONFIG } from '../../config';
|
||||
import { ImmersionTrackerService } from '../../core/services/immersion-tracker-service';
|
||||
import { createAnilistRateLimiter } from '../../core/services/anilist/rate-limiter';
|
||||
import {
|
||||
createStatsServerRuntime,
|
||||
isSelfOwnedBackgroundStatsDaemonState,
|
||||
type StatsServerRuntimeDeps,
|
||||
} from './stats-server-runtime';
|
||||
import { createStatsServerRuntime, type StatsServerRuntimeDeps } from './stats-server-runtime';
|
||||
import type { StatsServer } from '../../core/services/stats-server';
|
||||
import type { BackgroundStatsServerState } from './stats-daemon';
|
||||
|
||||
@@ -73,13 +69,6 @@ function createRuntimeHarness(
|
||||
return { runtime, appStateValues };
|
||||
}
|
||||
|
||||
test('detects self-owned background stats daemon state', () => {
|
||||
assert.equal(
|
||||
isSelfOwnedBackgroundStatsDaemonState({ pid: process.pid, port: 6969, startedAtMs: 1 }),
|
||||
true,
|
||||
);
|
||||
});
|
||||
|
||||
test('stopBackgroundStatsServer clears stale state when daemon identity mismatches', async () => {
|
||||
const calls: string[] = [];
|
||||
const runtime = createStatsServerRuntime({
|
||||
|
||||
Reference in new issue
Block a user