Skip to content

Commit

Permalink
fix: support delay message test in grpc e2e
Browse files Browse the repository at this point in the history
Signed-off-by: wangxye <[email protected]>
  • Loading branch information
wangxye committed Nov 13, 2023
1 parent 93462bd commit 083bf98
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.time.Duration;
import java.util.concurrent.Callable;

import static java.util.concurrent.TimeUnit.SECONDS;
Expand Down Expand Up @@ -101,7 +100,7 @@ public void testDelay_Send_PushConsume() {
producer.send(message);
}
Assertions.assertEquals(SEND_NUM, producer.getEnqueueMessages().getDataSize(), "send message failed");
VerifyUtils.verifyDelayMessage(producer.getEnqueueMessages(), pushConsumer.getListener().getDequeueMessages(), 20);
VerifyUtils.verifyDelayMessage(producer.getEnqueueMessages(), pushConsumer.getListener().getDequeueMessages(), 10);
}

@Test
Expand Down Expand Up @@ -129,7 +128,7 @@ public Boolean call() throws Exception {
}
});
Assertions.assertEquals(SEND_NUM, producer.getEnqueueMessages().getDataSize(), "send message failed");
VerifyUtils.verifyDelayMessage(producer.getEnqueueMessages(), pushConsumer.getListener().getDequeueMessages(), 20);
VerifyUtils.verifyDelayMessage(producer.getEnqueueMessages(), pushConsumer.getListener().getDequeueMessages(), 10);
}

@Test
Expand Down

0 comments on commit 083bf98

Please sign in to comment.