mirror of
https://github.com/google/nomulus.git
synced 2025-08-11 12:09:39 +02:00
Prevent saving duplicate rows in spec11 pipeline (#1810)
* Prevent saving duplicate rows in spec11 pipeline * Chain applies together
This commit is contained in:
parent
b45a59c892
commit
f9d1945787
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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue