Skip to content

Commit

Permalink
fix: Attempting to fix IT.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamespfaulkner committed Nov 3, 2023
1 parent 6b94730 commit 0cef7eb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ public void testDeletedEntities() {
assertThat(deletedDomainEvents(entityView), is(aMapWithSize(1)));
assertThat(deletedDomainEvents(entityView), hasEntry(data.getKey(), Optional.of(data.getEntity())));

// onEvent has been called for the deleted entity
assertThat(dummyAgent.events, hasSize(2));
// onEvent has been called for the deleted entity twice
assertThat(dummyAgent.events, hasSize(3));
assertThat(dummyAgent.events, hasItem(Pair.of(null, data.getSpecificationEvent())));
assertThat(dummyAgent.events, hasItem(Pair.of(data.getEntity(), specificationDeletion(data.getKey())))); // the agent would be expected to handle the deletion event.
});
Expand Down

0 comments on commit 0cef7eb

Please sign in to comment.