Skip to content

Tests are not idempotent #10

@TomBurdge

Description

@TomBurdge

Currently, the tests are not idempotent. In other words, sometimes they fail and sometimes they succeed.

The tests create directories/files with over-lapping names. I think this may be causing behaviour; the errors tend to be based on the order of the tests being run with cargo test, which is pseudo-random. This is slightly perplexing behaviour, because the tests appear to tear up/down everything themselves. I think the pattern for this, is to use tempfile or a similar crate, as currently the directories/files are created quite directly.

There might be a super straightforward explanation, in need of a small re-factor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions