Skip to content

Commit 294d5c4

Browse files
author
aws-amplify-bot
committed
chore: remove global-gc
1 parent 7072fbf commit 294d5c4

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

packages/amplify-e2e-tests/src/cleanup-codebuild-resources.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,10 +1081,6 @@ const cleanupAccount = async (account: AWSAccountInfo, accountIndex: number, fil
10811081
await deleteResources(account, accountIndex, staleResources);
10821082
await deleteOrphanedOidcProviders(account);
10831083
console.log(`[ACCOUNT ${accountIndex}] Cleanup done!`);
1084-
1085-
if (global.gc) {
1086-
global.gc();
1087-
}
10881084
};
10891085

10901086
/**
@@ -1105,9 +1101,6 @@ const cleanup = async (): Promise<void> => {
11051101
return cleanupAccount(account, i, filterPredicateStaleResources);
11061102
}),
11071103
);
1108-
if (global.gc) {
1109-
global.gc();
1110-
}
11111104
await sleep(60 * 1000); // run again after 60 seconds
11121105
}
11131106

shared-scripts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ function _cleanUpResources {
774774
echo "Executing resource cleanup"
775775
cd packages/amplify-e2e-tests
776776
yarn install
777-
export NODE_OPTIONS="--max-old-space-size=8192 --expose-gc"
777+
export NODE_OPTIONS="--max-old-space-size=8192"
778778
ts-node ./src/cleanup-codebuild-resources.ts
779779
_unassumeTestAccountCredentials
780780
}

0 commit comments

Comments
 (0)