Skip to content

Commit

Permalink
Fixed test
Browse files Browse the repository at this point in the history
  • Loading branch information
cgendreau committed Jan 16, 2025
1 parent 02e60ef commit d8c7fc6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@

import ca.gc.aafc.dina.messaging.message.DocumentOperationNotification;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;

public class IndexRefreshRepositoryIT extends BaseIntegrationTest {


@Inject
private PersonService personService;

Expand All @@ -45,7 +44,8 @@ public void indexRefreshRepository_onRefreshAll_messageSent() {
IndexRefreshDto dto = new IndexRefreshDto();
dto.setDocType(PersonDto.TYPENAME);
repo.handlePost(EntityModel.of(dto));
assertEquals(1, messages.size());
}

// we may get more than 1 message if the database includes records from other tests
assertFalse(messages.isEmpty());
}
}

0 comments on commit d8c7fc6

Please sign in to comment.