• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Flags: --no-warnings
2'use strict';
3require('../../../common');
4const test = require('node:test');
5
6// When run alone, the test below does not keep the event loop alive.
7test('does not keep event loop alive', async (t) => {
8  await t.test('+does not keep event loop alive', async (t) => {
9    return new Promise((resolve) => {
10      setTimeout(resolve, 1000).unref();
11    });
12  });
13});
14