Skip to content

Flaky test: file_job temp_dir races under parallel execution #70

Closed

Description

@ElbertePlinio

file_job::tests::validates_supported_media_extensions_case_insensitively failed once locally (passed 3/3 on rerun, and passes in CI). The #[cfg(test)] temp_dir() helper plus fs::remove_dir_all in sibling tests can race when tests run in parallel. Fix: make temp_dir() unique per test (e.g. tempfile crate already in the workspace) or serialize the two extension tests.

Observed while rebasing #66 PR 4; not caused by that change.

Activity

  1. added a commit that references this issue on Jul 24, 2026
    df6356f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions