Skip to content

Commit

Permalink
Merge pull request #54 from pasxel/master
Browse files Browse the repository at this point in the history
Fix #53 IronMqProvider return message's body with name of queue
  • Loading branch information
k-k committed Dec 2, 2014
2 parents 27d70f3 + adb8986 commit a176586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Provider/IronMqProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function publish(array $message, array $options = [])

$result = $this->ironmq->postMessage(
$this->getNameWithPrefix(),
json_encode([$this->name => $message]),
json_encode($message),
[
'timeout' => $options['message_timeout'],
'delay' => $options['message_delay'],
Expand Down
2 changes: 1 addition & 1 deletion tests/MockClient/IronMqMockClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function getMessages($queue, $count, $timeout)
{
$response = new \stdClass;
$response->id = 123;
$response->body = "test";
$response->body = '{"test":{"foo":"bar"}}';
$response->timeout = 60;
$response->reserved_count = 1;
$response->push_status = new \stdClass;
Expand Down

0 comments on commit a176586

Please sign in to comment.