epir
Version:
EllipticPIR client library (Node.js / TypeScript bindings).
11 lines (6 loc) • 361 B
text/typescript
import { runTests } from './addon_gen_mG';
import { createDecryptionContext } from '../wasm';
// For WebAssembly tests, we have tests which uses max CPU cores (x2 for main threads and worker threads).
const testsWithWorkersCount = 2 * 3;
process.setMaxListeners(testsWithWorkersCount * 2 * navigator.hardwareConcurrency);
runTests(createDecryptionContext);