From 0b3ae01131126cc057242c7762c1b44dcef9b823 Mon Sep 17 00:00:00 2001 From: Vladimir Morozov Date: Tue, 27 Aug 2024 14:30:50 -0700 Subject: [PATCH] test: fix embedding test for Windows PR-URL: https://github.com/nodejs/node/pull/53659 Reviewed-By: Yagiz Nizipli Reviewed-By: Rafael Gonzaga Reviewed-By: Stefan Stojanovic Reviewed-By: Chengzhong Wu Reviewed-By: Joyee Cheung Reviewed-By: James M Snell Reviewed-By: Luigi Pinca --- test/embedding/test-embedding.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/test/embedding/test-embedding.js b/test/embedding/test-embedding.js index 5f706eb5666dd0..71c4f7f324c973 100644 --- a/test/embedding/test-embedding.js +++ b/test/embedding/test-embedding.js @@ -10,6 +10,7 @@ const { } = require('../common/child_process'); const path = require('path'); const fs = require('fs'); +const os = require('os'); tmpdir.refresh(); common.allowGlobals(global.require); @@ -152,12 +153,6 @@ for (const extraSnapshotArgs of [ { cwd: tmpdir.path }); } -// Skipping rest of the test on Windows because it fails in the CI -// TODO(StefanStojanovic): Reenable rest of the test after fixing it -if (common.isWindows) { - return; -} - // Guarantee NODE_REPL_EXTERNAL_MODULE won't bypass kDisableNodeOptionsEnv { spawnSyncAndExit( @@ -172,6 +167,6 @@ if (common.isWindows) { { status: 9, signal: null, - stderr: `${binary}: NODE_REPL_EXTERNAL_MODULE can't be used with kDisableNodeOptionsEnv\n`, + stderr: `${binary}: NODE_REPL_EXTERNAL_MODULE can't be used with kDisableNodeOptionsEnv${os.EOL}`, }); }