This commit is contained in:
CHEVALLIER Abel
2025-11-13 16:23:22 +01:00
parent de9c515a47
commit cb235644dc
34924 changed files with 3811102 additions and 0 deletions

17
node_modules/piscina/test/issue-513.test.ts generated vendored Normal file
View File

@@ -0,0 +1,17 @@
import assert from 'node:assert';
import { test } from 'node:test';
import { resolve } from 'node:path';
import Piscina from '..';
test('pool will maintain run and wait time histograms', async () => {
const pool = new Piscina({
filename: resolve(__dirname, 'fixtures/vm.js')
});
try {
await pool.run({ payload: 'throw new Error("foo")' });
assert.fail('Expected an error');
} catch (error) {
assert.strictEqual(error.message, 'foo');
}
});