Skip to content

Commit 37b2631

Browse files
committed
fix priority test.
1 parent 60d6fa5 commit 37b2631

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎bin/run-fun-test.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
set -x
44
set -e
55

6-
COMPOSE_PROJECT_NAME=mqdev docker-compose run --workdir="/mqdev" --rm dev ./bin/test "$@"
6+
docker-compose run --workdir="/mqdev" --rm dev ./bin/test "$@"

‎pkg/dbal/DbalConsumer.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,8 +213,8 @@ private function fetchPrioritizedMessage($now)
213213
->andWhere('queue = :queue')
214214
->andWhere('priority IS NOT NULL')
215215
->andWhere('(delayed_until IS NULL OR delayed_until <= :delayedUntil)')
216-
->addOrderBy('priority', 'desc')
217216
->addOrderBy('published_at', 'asc')
217+
->addOrderBy('priority', 'desc')
218218
->setMaxResults(1)
219219
;
220220

‎pkg/dbal/DbalProducer.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function send(PsrDestination $destination, PsrMessage $message)
6363
InvalidDestinationException::assertDestinationInstanceOf($destination, DbalDestination::class);
6464
InvalidMessageException::assertMessageInstanceOf($message, DbalMessage::class);
6565

66-
if (null !== $this->priority && 0 === $message->getPriority()) {
66+
if (null !== $this->priority && null === $message->getPriority()) {
6767
$message->setPriority($this->priority);
6868
}
6969
if (null !== $this->deliveryDelay && null === $message->getDeliveryDelay()) {

0 commit comments

Comments
 (0)