Prevent saving duplicate rows in spec11 pipeline (#1810)

* Prevent saving duplicate rows in spec11 pipeline

* Chain applies together
This commit is contained in:
sarahcaseybot 2022-12-15 15:51:28 -05:00 committed by GitHub
parent b45a59c892
commit f9d1945787
3 changed files with 35 additions and 21 deletions

View file

@ -280,9 +280,9 @@ class Spec11PipelineTest {
private void verifySaveToCloudSql() {
tm().transact(
() -> {
ImmutableList<Spec11ThreatMatch> sqlThreatMatches =
ImmutableList<Spec11ThreatMatch> spec11ThreatMatches =
Spec11ThreatMatchDao.loadEntriesByDate(tm(), new LocalDate(2020, 1, 27));
assertThat(sqlThreatMatches)
assertThat(spec11ThreatMatches)
.comparingElementsUsing(immutableObjectCorrespondence("id"))
.containsExactlyElementsIn(sqlThreatMatches);
});