-
-
Notifications
You must be signed in to change notification settings - Fork 247
Closed
Labels
good issueGood for newcomersGood for newcomersquestionFurther information is requestedFurther information is requestedwontfixThis will not be worked onThis will not be worked on
Description
Describe your task
The test suite in laravel are always executed inside a database transaction if you're using the LazilyRefreshDatabase trait. After v8.2, all tests that has a wallet transaction are broken
To Reproduce
Steps to reproduce the behavior:
- write an action that has a
app(DatabaseServiceInterface::class)->transaction. - write a test with
LazilyRefreshDatabasetrait.
Expected behavior
The test will broke with "Bavix\Wallet\Internal\Exceptions\TransactionStartException : Working inside an embedded transaction is not possible", but this transaction was started by the framework itself, not in userland.
Server:
- php version: 8.1
- database: postgres 14
- wallet version 8.2
- cache lock: redis
- cache wallets: redis
Metadata
Metadata
Assignees
Labels
good issueGood for newcomersGood for newcomersquestionFurther information is requestedFurther information is requestedwontfixThis will not be worked onThis will not be worked on