Skip to content

Conversation

@vilkris4
Copy link
Collaborator

@vilkris4 vilkris4 commented Aug 9, 2024

The test cases TestVersionedDBConcurrentUse and TestVersionedDBVersions in versioned_db_test.go will fail because the LevelDBManager instances are not cleaned up during teardown.

The following error messages will be shown when running the tests:

TempDir RemoveAll cleanup: remove ...\TestVersionedDBConcurrentUse2208946391\001\000001.log: The process cannot access the file because it is being used by another process.

TempDir RemoveAll cleanup: remove ...\TestVersionedDBVersions80412342\001\000002.ldb: The process cannot access the file because it is being used by another process.

This commit makes sure the resources are properly cleaned up during teardown.

The test cases `TestVersionedDBConcurrentUse` and `TestVersionedDBVersions` in `versioned_db_test.go` will fail because the `LevelDBManager` instances are not cleaned up during teardown.

The following error messages will be shown when running the tests:

```TempDir RemoveAll cleanup: remove ...\TestVersionedDBConcurrentUse2208946391\001\000001.log: The process cannot access the file because it is being used by another process.```

```TempDir RemoveAll cleanup: remove ...\TestVersionedDBVersions80412342\001\000002.ldb: The process cannot access the file because it is being used by another process.```

This commit makes sure the resources are properly cleaned up during teardown.
@georgezgeorgez georgezgeorgez self-requested a review August 11, 2024 13:13
@georgezgeorgez georgezgeorgez added the bug Something isn't working label Aug 11, 2024
@georgezgeorgez
Copy link
Collaborator

Ideally, I would want someone to recreate this issue. @vilkris4 mentioned this was on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants