Skip to content

Commit

Permalink
test: ignore errors when deleting files in perf tests (#2183)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddelgrosso1 committed Apr 20, 2023
1 parent b122e18 commit 160aae0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal-tooling/performApplicationPerformanceTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ async function performReadTest(): Promise<TestResult> {
};

rmSync(TEST_NAME_STRING, {recursive: true, force: true});
await bucket.deleteFiles(); //cleanup
await bucket.deleteFiles({force: true}); //cleanup
return result;
}

Expand Down
4 changes: 2 additions & 2 deletions internal-tooling/performPerformanceTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ async function performRangedReadTest(): Promise<TestResult[]> {
iterationResult.elapsedTimeUs = Math.round((end - start) * 1000);
}

await file.delete();
await file.delete({ignoreNotFound: true});
results.push(iterationResult);
return results;
}
Expand Down Expand Up @@ -206,7 +206,7 @@ async function performWriteReadTest(): Promise<TestResult[]> {
iterationResult.elapsedTimeUs = Math.round((end - start) * 1000);
}

await file.delete();
await file.delete({ignoreNotFound: true});
results.push(iterationResult);
return results;
}
Expand Down
2 changes: 1 addition & 1 deletion internal-tooling/performTransferManagerTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async function main() {
* Cleans up after a test is complete by removing all files from the bucket
*/
async function performTestCleanup() {
await bucket.deleteFiles();
await bucket.deleteFiles({force: true});
}

/**
Expand Down

0 comments on commit 160aae0

Please sign in to comment.