Skip to content

Commit

Permalink
test: do not force a directory delete for performance tests (#2163)
Browse files Browse the repository at this point in the history
* test: do not force a directory delete for performance tests

* remove unused import
  • Loading branch information
ddelgrosso1 authored Mar 16, 2023
1 parent 0501127 commit 6f58201
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions internal-tooling/performPerformanceTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import {
TestResult,
} from './performanceUtils';
import {Bucket} from '../src';
import {rmSync} from 'fs';

const TEST_NAME_STRING = 'nodejs-perf-metrics';
const DEFAULT_NUMBER_OF_WRITES = 1;
Expand Down Expand Up @@ -119,7 +118,6 @@ async function performRangedReadTest(): Promise<TestResult[]> {
iterationResult.elapsedTimeUs = Math.round((end - start) * 1000);
}

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

rmSync(TEST_NAME_STRING, {recursive: true, force: true});
await file.delete();
results.push(iterationResult);
return results;
Expand Down
1 change: 0 additions & 1 deletion internal-tooling/performTransferManagerTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ async function performDownloadFileInChunksTest(): Promise<TestResult> {
workers: argv.workers,
};

rmSync(TEST_NAME_STRING, {recursive: true, force: true});
return result;
}

Expand Down

0 comments on commit 6f58201

Please sign in to comment.