Skip to content

Commit 73ceb08

Browse files
Fix flakey test by asserting execution order.
1 parent e085561 commit 73ceb08

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

Lines changed: 1 addition & 1 deletion
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)