Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Perf] Update keyvault-secrets test to match .NET #17799

Merged
merged 16 commits into from
Oct 4, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Enable insecure HTTPS test-proxy
  • Loading branch information
mikeharder committed Sep 21, 2021
commit 7a977fb2c017f81db9a8056c91cc6227521d9c7e
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export abstract class SecretTest<TOptions = Record<string, unknown>> extends Per

constructor() {
super();
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
this.secretClient = new SecretClient(keyVaultUri, credential, this.configureClientOptionsCoreV1({}));
}

Expand Down
5 changes: 3 additions & 2 deletions sdk/test-utils/perfstress/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
import { IncomingMessage, RequestOptions, request } from "http";
import { IncomingMessage } from "http";
import { RequestOptions, request } from "https";
import { TestProxyHttpClient, TestProxyHttpClientV1 } from "./testProxyHttpClient";

/**
Expand All @@ -25,7 +26,7 @@ export function getEnvVar(name: string) {
*/
export async function drainStream(stream: NodeJS.ReadableStream) {
return new Promise((resolve, reject) => {
stream.on("data", () => {});
stream.on("data", () => { });
stream.on("end", resolve);
stream.on("error", reject);
});
Expand Down