Skip to content

Test cleanup fails all model tests on Windows on Go 1.20 #8779

@calmh

Description

@calmh

Pretty much all the tests fail at cleaning up the temp dir:

...
=== RUN   TestWeakHash
2023/02/07 15:28:59 INFO: No stored folder metadata for "default"; recalculating
2023/02/07 15:28:59 INFO: Ready to synchronize "default" (default) (sendreceive)
2023/02/07 15:28:59 INFO: Completed initial scan of sendreceive folder "default" (default)
    testing.go:1206: TempDir RemoveAll cleanup: remove C:\Users\jb\AppData\Local\Temp\TestWeakHash1733825082\001: The process cannot access the file because it is being used by another process.
--- FAIL: TestWeakHash (2.03s)
=== RUN   TestCopierCleanup
2023/02/07 15:29:01 INFO: No stored folder metadata for "default"; recalculating
2023/02/07 15:29:01 INFO: Ready to synchronize "default" (default) (sendreceive)
2023/02/07 15:29:01 INFO: Completed initial scan of sendreceive folder "default" (default)
    testing.go:1206: TempDir RemoveAll cleanup: remove C:\Users\jb\AppData\Local\Temp\TestCopierCleanup3901192848\001: The process cannot access the file because it is being used by another process.
--- FAIL: TestCopierCleanup (1.44s)
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA problem with current functionality, as opposed to missing functionality (enhancement)buildIssues caused by or requiring changes to the build system (scripts or Docker image)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions