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 2292bfcaed
commit 4ede5f0c8a
3 changed files with 35 additions and 21 deletions
@@ -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);
});