11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst test = require('node:test'); 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_ciconsole.error('stderr', 1); 51cb0ef41Sopenharmony_ci 61cb0ef41Sopenharmony_citest('a test', async () => { 71cb0ef41Sopenharmony_ci console.error('stderr', 2); 81cb0ef41Sopenharmony_ci await new Promise((resolve) => { 91cb0ef41Sopenharmony_ci console.log('stdout', 3); 101cb0ef41Sopenharmony_ci setTimeout(() => { 111cb0ef41Sopenharmony_ci // This should not be sent to the TAP parser. 121cb0ef41Sopenharmony_ci console.error('not ok 1 - fake test'); 131cb0ef41Sopenharmony_ci resolve(); 141cb0ef41Sopenharmony_ci console.log('stdout', 4); 151cb0ef41Sopenharmony_ci }, 2); 161cb0ef41Sopenharmony_ci }); 171cb0ef41Sopenharmony_ci console.error('stderr', 5); 181cb0ef41Sopenharmony_ci}); 191cb0ef41Sopenharmony_ci 201cb0ef41Sopenharmony_ciconsole.error('stderr', 6); 21