activerecord-cockroachdb-adapter
activerecord-cockroachdb-adapter copied to clipboard
Failed test test_multiple_find_or_create_by_within_transactions
Tests:
- CreateOrFindByWithinTransactions#test_multiple_find_or_create_by_bang_within_transactions
- CreateOrFindByWithinTransactions#test_multiple_find_or_create_by_within_transactions
The second thread is running both ROLLBACK and COMMIT at some point, hence the unwanted error: no transaction in progress.
The bug appears at the end of the transaction block (source).