Skip to content

Commit

Permalink
User lowecase http_proxy env var
Browse files Browse the repository at this point in the history
  • Loading branch information
badsyntax committed Jun 4, 2020
1 parent 41eeacf commit 3c84c49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
"env": {
"FIXTURE_NAME": "gradle-groovy-default-build-file",
"VSCODE_TEST": "true",
"HTTP_PROXY": "http://192.168.1.10",
"http_proxy": "http://0.0.0.0",
"SUITE_NAME": "Run network tests with Gradle"
},
"args": [
Expand Down
2 changes: 1 addition & 1 deletion extension/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export class GradleTasksClient implements vscode.Disposable {
this.grpcClient = new GrpcClient(
`localhost:${this.server.getPort()}`,
grpc.credentials.createInsecure(),
{ 'grpc.enable_http_proxy': 0 }
{ 'grpc.enable_http_proxy': 1 }
);
const deadline = new Date();
deadline.setSeconds(deadline.getSeconds() + this.connectDeadline);
Expand Down
3 changes: 2 additions & 1 deletion extension/src/test/runTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ async function runNetworkTestsWithGradle(
FIXTURE_NAME: fixture,
VSCODE_TEST: 'true',
SUITE_NAME: 'Run network tests with Gradle',
HTTP_PROXY: 'http://192.168.1.10',
// eslint-disable-next-line @typescript-eslint/camelcase
http_proxy: 'http://0.0.0.0',
},
});
}
Expand Down

0 comments on commit 3c84c49

Please sign in to comment.