quantranhong1999 commented on code in PR #1651:
URL: https://github.com/apache/james-project/pull/1651#discussion_r1275807357
##########
server/queue/queue-pulsar/src/main/scala/org/apache/james/queue/pulsar/PulsarMailQueue.scala:
##########
@@ -97,6 +99,9 @@ class PulsarMailQueue(
import serializers._
type MessageAsJson = String
+ val DATE: Instant = Instant.parse("2023-04-14T10:00:00.00Z")
+ private val CLOCK: UpdatableTickingClock = new UpdatableTickingClock(DATE)
+ private val now: LocalDateTime = LocalDateTime.now(CLOCK)
Review Comment:
Wrong suggestion, we likely can not manipulate clock of Pulsar. May need a
diff way to test delay with Pulsar...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]