Skip to content

Commit

Permalink
test: unset NODE_OPTIONS for cctest
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
addaleax authored and codebytere committed Feb 17, 2020
1 parent 43e2c2e commit 7c3cc94
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/cctest/node_test_fixture.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class NodeTestFixture : public ::testing::Test {

static void SetUpTestCase() {
if (!node_initialized) {
uv_os_unsetenv("NODE_OPTIONS");
node_initialized = true;
int argc = 1;
const char* argv0 = "cctest";
Expand Down

0 comments on commit 7c3cc94

Please sign in to comment.