Skip to content

Commit 721799d

Browse files
christophstroblmp911de
authored andcommitted
Fix flakey test by asserting execution order.
See #4838 Original pull request: #4843
1 parent 94a4fe7 commit 721799d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-data-mongodb/src/test/java/org/springframework/data/mongodb/ReactiveTransactionIntegrationTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ public Flux<Void> saveWithErrorLogs(Person person) {
467467
TransactionalOperator transactionalOperator = TransactionalOperator.create(manager,
468468
new DefaultTransactionDefinition());
469469

470-
return Flux.merge(operations.save(new EventLog(new ObjectId(), "beforeConvert")), //
470+
return Flux.concat(operations.save(new EventLog(new ObjectId(), "beforeConvert")), //
471471
operations.save(new EventLog(new ObjectId(), "afterConvert")), //
472472
operations.save(new EventLog(new ObjectId(), "beforeInsert")), //
473473
operations.save(person), //

0 commit comments

Comments
 (0)