Skip to content

Tried to create a temporary file ... but this file already exists in state reproducibility tests #18

@alien-brother

Description

@alien-brother

v0.3.2, Windows 11

If a plugin fails state reproducibility tests, clap-validator can report the following:

<time> [ERROR] thread 'main' panicked at 'Tried to create a temporary file at 'C:\Users\<user>\AppData\Local\Temp\clap-validator\<plugin>\state-reproducibility-basic\state-expected', but this file already exists. This is a bug in clap-validator.': src\tests.rs:185

plus, state-reproducibility-null-cookies would be reported as CRASHED: exit code: 101.

It seems that state-reproducibility-null-cookies is trying to use the folder state-reproducibility-basic and fails if state-reproducibility-basic already failed during this run. Running only state-reproducibility-null-cookies with a plugin that fails the test confirms this:

   - state-reproducibility-null-cookies: The exact same test as state-
       reproducibility-basic, but with all cookies in the parameter events set
       to null pointers. The plugin should handle this in the same way as the
       other test case.
     FAILED: Re-saving the loaded state resulted in a different
       state file. Expected: 'C:\Users\<user>\AppData\Local\Temp\clap-
       validator\<plugin>\state-reproducibility-basic\state-
       expected'. Actual: 'C:\Users\<user>\AppData\Local\Temp\clap-
       validator\<plugin>\state-reproducibility-basic\state-
       actual'.

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