Fix flakey test by asserting execution order.

See #4838
Original pull request: #4843
This commit is contained in:
Christoph Strobl
2024-11-28 11:53:08 +01:00
committed by Mark Paluch
parent 94a4fe7acb
commit 721799dfdc

View File

@@ -467,7 +467,7 @@ public class ReactiveTransactionIntegrationTests {
TransactionalOperator transactionalOperator = TransactionalOperator.create(manager,
new DefaultTransactionDefinition());
return Flux.merge(operations.save(new EventLog(new ObjectId(), "beforeConvert")), //
return Flux.concat(operations.save(new EventLog(new ObjectId(), "beforeConvert")), //
operations.save(new EventLog(new ObjectId(), "afterConvert")), //
operations.save(new EventLog(new ObjectId(), "beforeInsert")), //
operations.save(person), //