]> source.dussan.org Git - sonarqube.git/commitdiff
[NO JIRA] Fix Quality Gate
authorBelen Pruvost <belen.pruvost@sonarsource.com>
Thu, 28 Jul 2022 18:44:34 +0000 (20:44 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 28 Jul 2022 20:02:56 +0000 (20:02 +0000)
server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/issues/IssueChangeEventServiceImplTest.java

index d8749bc4752d2a8a867f7a90f6ef08e2e6abe806..4fd9b9626d27605d69f3514b917287b429085cc8 100644 (file)
@@ -209,6 +209,9 @@ public class IssueChangeEventServiceImplTest {
 
     underTest.distributeIssueChangeEvent(issues, projectsByUuid, branchesByProjectUuid);
 
+    Deque<PushEventDto> events = db.getDbClient().pushEventDao()
+      .selectChunkByProjectUuids(db.getSession(), Set.of(project.uuid()), 1l, null, 20);
+    assertThat(events).isEmpty();
   }
 
   private void assertNoIssueDistribution(ProjectDto project, BranchDto branch, IssueDto issue, @Nullable String severity,