Skip to content

fix: Race condition with tests and sqlite init#5

Merged
dansimau merged 1 commit intomainfrom
dan/sqlite-in-memory
Jul 22, 2025
Merged

fix: Race condition with tests and sqlite init#5
dansimau merged 1 commit intomainfrom
dan/sqlite-in-memory

Conversation

@dansimau
Copy link
Owner

Should fix the error:

panic: SQL logic error: table `entities` already exists (1) [recovered]
	panic: SQL logic error: table `entities` already exists (1)

By using in-memory sqlite databases for tests instead of sharing one on
the filesystem.

Should fix the error:

```
panic: SQL logic error: table `entities` already exists (1) [recovered]
	panic: SQL logic error: table `entities` already exists (1)
```

By using in-memory sqlite databases for tests instead of sharing one on
the filesystem.
@dansimau dansimau marked this pull request as ready for review July 21, 2025 13:42
@dansimau dansimau merged commit c37e1a6 into main Jul 22, 2025
3 of 4 checks passed
@dansimau dansimau deleted the dan/sqlite-in-memory branch July 22, 2025 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments