Skip to content

Commit a57d64d

Browse files
committed
test(bulk-model-sync): fix assertion of no operation overlap
The function getPendingChanges() was called twice, resulting in an empty operation list on the second call.
1 parent ac9b85f commit a57d64d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bulk-model-sync-lib/src/commonTest/kotlin/org/modelix/model/sync/bulk/AbstractModelSyncTest.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,8 +601,9 @@ abstract class AbstractModelSyncTest {
601601
DeleteNodeOp::class to 1,
602602
)
603603

604-
assertEquals(expectedOperations, getNumOfUsedOperationsByType())
605-
assertNoOverlappingOperations(getPendingChanges().first)
604+
val operations = getPendingChanges().first
605+
assertEquals(expectedOperations, operations.numOpsByType())
606+
assertNoOverlappingOperations(operations)
606607
}
607608
}
608609

0 commit comments

Comments
 (0)