Skip to content

Fix unreliable integration test directory cleanup#41

Merged
tequdev merged 2 commits into
Xahau:mainfrom
tequdev:fix-test-cleanup
Jul 4, 2026
Merged

Fix unreliable integration test directory cleanup#41
tequdev merged 2 commits into
Xahau:mainfrom
tequdev:fix-test-cleanup

Conversation

@tequdev

@tequdev tequdev commented Jul 4, 2026

Copy link
Copy Markdown
Member

High Level Overview of Change

Test setup/teardown used fs.rmdirSync, which fails when the target directory is not empty or no longer exists. That left stale artifacts between runs and made cleanup brittle.
Use fs.rmSync with recursive and force so directories are removed reliably regardless of contents.

Context of Change

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Refactor (non-breaking change that only restructures code)
  • Tests (You added tests for code that already exists, or your new feature included in this PR)
  • Documentation Updates
  • Release

Before / After

Test Plan

tequdev added 2 commits July 4, 2026 13:21
Test setup/teardown used fs.rmdirSync, which fails when the target
directory is not empty or no longer exists. That left stale artifacts
between runs and made cleanup brittle.
Use fs.rmSync with recursive and force so directories are removed
reliably regardless of contents or prior existence.
@tequdev tequdev merged commit f840b4e into Xahau:main Jul 4, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant