alexevanczuk / packs

A pure Rust implementation of packwerk, a gradual modularization tool for Ruby
MIT License
70 stars 7 forks source link

Fixing create-when-exists race condition #210

Closed perryqh closed 3 months ago

perryqh commented 3 months ago

Background

The 0.2.10 test suite failed because of a timing issue.

Screenshot 2024-07-02 at 07 47 12

I believe that test_create_already_exists ran before test_create had finished common::delete_foobar();

Change

test_create_already_exists now uses a different fixture