Skip to content

Commit a3d80f2

Browse files
CopilotBioPhoton
andcommitted
test(utils): add env var cleanup to prevent test pollution
Co-authored-by: BioPhoton <10064416+BioPhoton@users.noreply.github.com>
1 parent 3c68524 commit a3d80f2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/utils/src/lib/wal-sharded.unit.test.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ describe('ShardedWal', () => {
4040
// Clear coordinator env var for fresh state
4141
// eslint-disable-next-line functional/immutable-data, @typescript-eslint/no-dynamic-delete
4242
delete process.env[PROFILER_SHARDER_ID_ENV_VAR];
43+
// Clear measure name env var to avoid test pollution
44+
// eslint-disable-next-line functional/immutable-data, @typescript-eslint/no-dynamic-delete
45+
delete process.env.CP_PROFILER_MEASURE_NAME;
4346
});
4447

4548
describe('initialization', () => {

0 commit comments

Comments
 (0)