mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-11-03 23:08:18 +00:00
Validate untyped hash and CLI fixture values
The packaged xxHash export has no resolved type declaration. Check the factory, engine, and bigint result at the benchmark boundary, and treat CLI fixture rejection values as unknown. Add regression cases for invalid engines and hash results while retaining the real-engine and initialisation-count assertions.
This commit is contained in:
1 parent
5e3e7e1330
commit
c7a62d5e1c
3 files changed
+48
-4
No files matched your search
@@ -82,7 +82,7 @@ export async function runP2PAutomaticHostFixture(options: CLIOptions, context: C
|
||||
}
|
||||
const commandOutcome = runCommand(options, context).then(
|
||||
(result) => ({ type: "result" as const, result }),
|
||||
(error) => ({ type: "error" as const, error })
|
||||
(error: unknown) => ({ type: "error" as const, error })
|
||||
);
|
||||
const connectedWaitStarted = Date.now();
|
||||
while (!service.transportLifecycle.isConnected) {
|
||||
|
||||
Reference in new issue
Block a user