mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
4b35a9cfda
This commit adds the previously missing test location for FileTest tests. Fixes: https://github.com/nodejs/node/issues/49926 Fixes: https://github.com/nodejs/node/issues/49927 PR-URL: https://github.com/nodejs/node/pull/49999 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Chemi Atlow <chemi@atlow.co.il> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
21 lines
716 B
JavaScript
21 lines
716 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const fixtures = require('../common/fixtures');
|
|
const { strictEqual } = require('node:assert');
|
|
const { relative } = require('node:path');
|
|
const { run } = require('node:test');
|
|
const fixture = fixtures.path('test-runner', 'never_ending_sync.js');
|
|
const relativePath = relative(process.cwd(), fixture);
|
|
const stream = run({
|
|
files: [relativePath],
|
|
timeout: common.platformTimeout(100),
|
|
});
|
|
|
|
stream.on('test:fail', common.mustCall((result) => {
|
|
strictEqual(result.name, relativePath);
|
|
strictEqual(result.details.error.failureType, 'testTimeoutFailure');
|
|
strictEqual(result.line, 1);
|
|
strictEqual(result.column, 1);
|
|
strictEqual(result.file, fixture);
|
|
}));
|