mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 05:38:47 +02:00
test: fix typos
PR-URL: https://github.com/nodejs/node/pull/59330 Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com> Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com>
This commit is contained in:
parent
f7a2ba7e83
commit
becb55aac3
2 changed files with 5 additions and 5 deletions
|
@ -35,7 +35,7 @@ test('Can create a transferable abort controller', async () => {
|
|||
|
||||
mc.port2.postMessage(ac.signal, [ac.signal]);
|
||||
|
||||
// Can be cloned/transferd multiple times and they all still work
|
||||
// Can be cloned/transferred multiple times and they all still work
|
||||
mc.port2.postMessage(ac.signal, [ac.signal]);
|
||||
|
||||
// Although we're using transfer semantics, the local AbortSignal
|
||||
|
|
|
@ -104,17 +104,17 @@ const limit = 10_000;
|
|||
|
||||
describe('when there is a long-lived signal', () => {
|
||||
it('drops settled dependant signals', (t, done) => {
|
||||
makeSubsequentCalls(limit, (signal, depandantSignalsKey) => {
|
||||
makeSubsequentCalls(limit, (signal, dependantSignalsKey) => {
|
||||
setImmediate(() => {
|
||||
t.assert.strictEqual(signal[depandantSignalsKey].size, 0);
|
||||
t.assert.strictEqual(signal[dependantSignalsKey].size, 0);
|
||||
done();
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
it('keeps all active dependant signals', (t, done) => {
|
||||
makeSubsequentCalls(limit, (signal, depandantSignalsKey) => {
|
||||
t.assert.strictEqual(signal[depandantSignalsKey].size, limit);
|
||||
makeSubsequentCalls(limit, (signal, dependantSignalsKey) => {
|
||||
t.assert.strictEqual(signal[dependantSignalsKey].size, limit);
|
||||
|
||||
done();
|
||||
}, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue