Skip to content

Commit 7c3cc94

Browse files
addaleaxcodebytere
authored andcommitted
test: unset NODE_OPTIONS for cctest
The test may fail otherwise because of behaviour changes caused by setting the environment variable. Fixes: #31585 PR-URL: #31594 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]>
1 parent 43e2c2e commit 7c3cc94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/cctest/node_test_fixture.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ class NodeTestFixture : public ::testing::Test {
7171

7272
static void SetUpTestCase() {
7373
if (!node_initialized) {
74+
uv_os_unsetenv("NODE_OPTIONS");
7475
node_initialized = true;
7576
int argc = 1;
7677
const char* argv0 = "cctest";

0 commit comments

Comments
 (0)