Skip to content

Commit

Permalink
[KeyVault][Test] remove async iterator polyfill (#18108)
Browse files Browse the repository at this point in the history
since Node 8 is no longer supported.
  • Loading branch information
jeremymeng authored Oct 11, 2021
1 parent 34d6c1d commit 0d80df2
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 20 deletions.
5 changes: 0 additions & 5 deletions sdk/keyvault/keyvault-admin/test/utils/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
import * as assert from "assert";
import { env } from "@azure-tools/test-recorder";

// Async iterator's polyfill for Node 8
if (!Symbol || !(Symbol as any).asyncIterator) {
(Symbol as any).asyncIterator = Symbol.for("Symbol.asyncIterator");
}

export async function assertThrowsAbortError(cb: () => Promise<any>): Promise<void> {
let passed = false;
try {
Expand Down
5 changes: 0 additions & 5 deletions sdk/keyvault/keyvault-certificates/test/utils/utils.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
import { env } from "@azure-tools/test-recorder";
import * as assert from "assert";

// Async iterator's polyfill for Node 8
if (!Symbol || !(Symbol as any).asyncIterator) {
(Symbol as any).asyncIterator = Symbol.for("Symbol.asyncIterator");
}

export function getKeyvaultName(): string {
const keyVaultEnvVarName = "KEYVAULT_NAME";
const keyVaultName: string | undefined = env[keyVaultEnvVarName];
Expand Down
5 changes: 0 additions & 5 deletions sdk/keyvault/keyvault-keys/test/utils/utils.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ import { env } from "@azure-tools/test-recorder";
import * as assert from "assert";
import { LATEST_API_VERSION } from "../../src/keysModels";

// Async iterator's polyfill for Node 8
if (!Symbol || !(Symbol as any).asyncIterator) {
(Symbol as any).asyncIterator = Symbol.for("Symbol.asyncIterator");
}

export function getKeyvaultName(): string {
const keyVaultEnvVarName = "KEYVAULT_NAME";
const keyVaultName: string | undefined = env[keyVaultEnvVarName];
Expand Down
5 changes: 0 additions & 5 deletions sdk/keyvault/keyvault-secrets/test/utils/utils.common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@

import * as assert from "assert";

// Async iterator's polyfill for Node 8
if (!Symbol || !(Symbol as any).asyncIterator) {
(Symbol as any).asyncIterator = Symbol.for("Symbol.asyncIterator");
}

export async function assertThrowsAbortError(cb: () => Promise<any>): Promise<void> {
let passed = false;
try {
Expand Down

0 comments on commit 0d80df2

Please sign in to comment.