cockroachdb / cockroachdb/activerecord-cockroachdb-adapter

Failed test test_multiple_find_or_create_by_within_transactions

Aperta
#306 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
rails 7.1
Lingua principale
Ruby
Stelle
105
Fork
56
Merge medio
9h 5m
PR unite (30g)
3

Descrizione

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](https://github.com/rails/rails/blob/7130e3cfc4a09d76df6e86531bbd6bb95bc081e6/activerecord/test/cases/relations_test.rb#L2495)).

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.