Skip to content

Commit b2c7b6a

Browse files
committed
test,android: pass parallel/test-aborted-util
1 parent e97886d commit b2c7b6a

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

test/parallel/test-aborted-util.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const common = require('../common');
55
const { aborted } = require('util');
66
const assert = require('assert');
77
const { getEventListeners } = require('events');
8-
const { spawn } = require('child_process');
8+
// const { spawn } = require('child_process'); // nodejs-mobile patch
99

1010
{
1111
// Test aborted works when provided a resource
@@ -47,13 +47,14 @@ const { spawn } = require('child_process');
4747
)).then(common.mustCall());
4848
}
4949

50-
{
51-
const childProcess = spawn(process.execPath, ['--input-type=module']);
52-
childProcess.on('exit', common.mustCall((code) => {
53-
assert.strictEqual(code, 13);
54-
}));
55-
childProcess.stdin.end(`
56-
import { aborted } from 'node:util';
57-
await aborted(new AbortController().signal, {});
58-
`);
59-
}
50+
// nodejs-mobile patch: child_process not supported
51+
// {
52+
// const childProcess = spawn(process.execPath, ['--input-type=module']);
53+
// childProcess.on('exit', common.mustCall((code) => {
54+
// assert.strictEqual(code, 13);
55+
// }));
56+
// childProcess.stdin.end(`
57+
// import { aborted } from 'node:util';
58+
// await aborted(new AbortController().signal, {});
59+
// `);
60+
// }

0 commit comments

Comments
 (0)