summaryrefslogtreecommitdiff
path: root/test/parallel/test-timers-immediate-unref-simple.js
blob: 369894fcdebbaeb5d06a0e9b221aba52c5787120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'use strict';

const common = require('../common');

if (!common.isMainThread) {
  // Note that test-timers-immediate-unref-nested-once works instead.
  common.skip('Worker bootstrapping works differently -> different timing');
}

// This immediate should not execute as it was unrefed
// and nothing else is keeping the event loop alive
setImmediate(common.mustNotCall()).unref();