From de4021b87fc593b14446f6438dbc4d5c822c3e6e Mon Sep 17 00:00:00 2001 From: Belen Pruvost Date: Thu, 28 Jul 2022 20:44:34 +0200 Subject: [PATCH] [NO JIRA] Fix Quality Gate --- .../server/pushapi/issues/IssueChangeEventServiceImplTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/issues/IssueChangeEventServiceImplTest.java b/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/issues/IssueChangeEventServiceImplTest.java index d8749bc4752..4fd9b9626d2 100644 --- a/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/issues/IssueChangeEventServiceImplTest.java +++ b/server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/issues/IssueChangeEventServiceImplTest.java @@ -209,6 +209,9 @@ public class IssueChangeEventServiceImplTest { underTest.distributeIssueChangeEvent(issues, projectsByUuid, branchesByProjectUuid); + Deque 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, -- 2.39.5