aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-pushapi
diff options
context:
space:
mode:
authorBelen Pruvost <belen.pruvost@sonarsource.com>2022-07-28 20:44:34 +0200
committersonartech <sonartech@sonarsource.com>2022-07-28 20:02:56 +0000
commitde4021b87fc593b14446f6438dbc4d5c822c3e6e (patch)
tree4f9d81c4db66a96321d1ff7a8c5bab7468829fcd /server/sonar-webserver-pushapi
parent7497db8fdd7a19f2b21506c4602ea90190448fb2 (diff)
downloadsonarqube-de4021b87fc593b14446f6438dbc4d5c822c3e6e.tar.gz
sonarqube-de4021b87fc593b14446f6438dbc4d5c822c3e6e.zip
[NO JIRA] Fix Quality Gate
Diffstat (limited to 'server/sonar-webserver-pushapi')
-rw-r--r--server/sonar-webserver-pushapi/src/test/java/org/sonar/server/pushapi/issues/IssueChangeEventServiceImplTest.java3
1 files changed, 3 insertions, 0 deletions
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<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,