Skip to content

Commit

Permalink
tests: stability of ExporterDeleteAfterAcknowledgeTest
Browse files Browse the repository at this point in the history
  • Loading branch information
VonDerBeck committed Nov 28, 2023
1 parent 1c0705b commit 1408982
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public void cleanUp() {
public void shouldDeleteAfterAcknowledge() throws Exception {
// given: some consumed and acknowledged messages
zeebeContainer.getClient().newDeployResourceCommand().addProcessModel(WORKFLOW, "process-1.bpmn").send().join();
Thread.sleep(1000);
zeebeContainer.getClient().newDeployResourceCommand().addProcessModel(WORKFLOW, "process-2.bpmn").send().join();
redisConnection.sync().xgroupCreate(XReadArgs.StreamOffset.from("zeebe:DEPLOYMENT", "0-0"),
"application_1", XGroupCreateArgs.Builder.mkstream());
Expand Down Expand Up @@ -84,6 +85,7 @@ public void shouldDeleteAfterAcknowledge() throws Exception {
public void shouldNotDeleteWhenConsumedButNotAcknowledged() throws Exception {
// given: some consumed but never acknowledged messages
zeebeContainer.getClient().newDeployResourceCommand().addProcessModel(WORKFLOW, "process-1.bpmn").send().join();
Thread.sleep(1000);
zeebeContainer.getClient().newDeployResourceCommand().addProcessModel(WORKFLOW, "process-2.bpmn").send().join();
redisConnection.sync().xgroupCreate(XReadArgs.StreamOffset.from("zeebe:DEPLOYMENT", "0-0"),
"application_2", XGroupCreateArgs.Builder.mkstream());
Expand All @@ -107,6 +109,7 @@ public void shouldNotDeleteWhenConsumedButNotAcknowledged() throws Exception {
public void shouldNotDeleteWhenNotAcknowledgedByAllGroups() throws Exception {
// given: messages consumed and acknowledged by only one of two consumer groups
zeebeContainer.getClient().newDeployResourceCommand().addProcessModel(WORKFLOW, "process-1.bpmn").send().join();
Thread.sleep(1000);
zeebeContainer.getClient().newDeployResourceCommand().addProcessModel(WORKFLOW, "process-2.bpmn").send().join();
redisConnection.sync().xgroupCreate(XReadArgs.StreamOffset.from("zeebe:DEPLOYMENT", "0-0"),
"application_3", XGroupCreateArgs.Builder.mkstream());
Expand Down

0 comments on commit 1408982

Please sign in to comment.