Title: test-net-GH-5504.js is failing because environment variables are missing · Issue #3183 · nodejs/node · GitHub
Open Graph Title: test-net-GH-5504.js is failing because environment variables are missing · Issue #3183 · nodejs/node
X Title: test-net-GH-5504.js is failing because environment variables are missing · Issue #3183 · nodejs/node
Description: In test https://github.com/nodejs/node/blob/master/test/sequential/test-net-GH-5504.js var opt = { env: { NODE_DEBUG: 'net', NODE_COMMON_PORT: process.env.NODE_COMMON_PORT, } }; ... var s = spawn(node, [__filename, 'server'], opt); This ...
Open Graph Description: In test https://github.com/nodejs/node/blob/master/test/sequential/test-net-GH-5504.js var opt = { env: { NODE_DEBUG: 'net', NODE_COMMON_PORT: process.env.NODE_COMMON_PORT, } }; ... var s = spawn(n...
X Description: In test https://github.com/nodejs/node/blob/master/test/sequential/test-net-GH-5504.js var opt = { env: { NODE_DEBUG: 'net', NODE_COMMON_PORT: process.env.NODE_COMMON_PORT, } }; ... var s =...
Opengraph URL: https://github.com/nodejs/node/issues/3183
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test-net-GH-5504.js is failing because environment variables are missing","articleBody":"In test https://github.com/nodejs/node/blob/master/test/sequential/test-net-GH-5504.js\n\n``` javascript\n var opt = {\n env: {\n NODE_DEBUG: 'net',\n NODE_COMMON_PORT: process.env.NODE_COMMON_PORT,\n }\n };\n ...\n var s = spawn(node, [__filename, 'server'], opt);\n```\n\nThis code loses the original environment variables passing into the program, which causes failure for the spawn function. Specifically, the program could not start because the loader couldn't find the correct version of standard c++ library which is not in the default location. The loader is supposed to find the needed libraries thought LD_LIBRARY_PATH environment variable which is missing.\n\nI suggests to change the above code to this instead:\n\n``` javascript\n var opt = {\n env: process.env\n };\n opt.env.NODE_DEBUG = \"net\";\n opt.env.NODE_COMMON_PORT = process.env.NODE_COMMON_PORT;\n\n```\n","author":{"url":"https://github.com/john-yan","@type":"Person","name":"john-yan"},"datePublished":"2015-10-05T17:32:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/3183/node/issues/3183"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d7675379-b747-df47-7ef6-2e74f2f8e37a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CE0C:121B7:4D599E:681839:6A4DA4E8 |
| html-safe-nonce | 91e804e1c17c03e3aece21892594b3784e7e3facfb749ed0a2b5e56b857cd37d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTBDOjEyMUI3OjRENTk5RTo2ODE4Mzk6NkE0REE0RTgiLCJ2aXNpdG9yX2lkIjoiNTMyNTM5NTUzNjI0NDQ4MzMwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7ffd26d28808722a6d836b034c56133137ecd2bd8d3288017dc100a3c9abfd14 |
| hovercard-subject-tag | issue:109846904 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/3183/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f0df3398b557fd32b820b1003d54f7d8b9a160a05472e345d0111992d5385a55/nodejs/node/issues/3183 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f0df3398b557fd32b820b1003d54f7d8b9a160a05472e345d0111992d5385a55/nodejs/node/issues/3183 |
| og:image:alt | In test https://github.com/nodejs/node/blob/master/test/sequential/test-net-GH-5504.js var opt = { env: { NODE_DEBUG: 'net', NODE_COMMON_PORT: process.env.NODE_COMMON_PORT, } }; ... var s = spawn(n... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | john-yan |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7f13faa65cccc9b729d674da83335d5dcfdfd193 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width