From 95f8a87a4059c502a02bf1abb92bc7f38948e1de Mon Sep 17 00:00:00 2001 From: Fumiaki MATSUSHIMA Date: Thu, 6 Jul 2023 16:16:30 +0900 Subject: [PATCH] Omit default args on normalization for autify-with-proxy args --- integration-test/src/commands.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/integration-test/src/commands.ts b/integration-test/src/commands.ts index 70bd0c34..c28a5b78 100644 --- a/integration-test/src/commands.ts +++ b/integration-test/src/commands.ts @@ -99,5 +99,9 @@ const replaceConstants = (args: string[]) => { return args; }; +const DEFAULT_ARGUMENTS = new Set(["-t=300"]); + export const normalizeCommand = (args: string[]): string[] => - replaceConstants(concatFlagAndValue(args)); + replaceConstants(concatFlagAndValue(args)).filter( + (arg) => !DEFAULT_ARGUMENTS.has(arg) + );