Skip to content

Commit

Permalink
Merge branch 'master' of github.com:convenia/Pigeon
Browse files Browse the repository at this point in the history
  • Loading branch information
jleonardolemos committed Apr 27, 2023
2 parents 42a54d7 + ddbb737 commit e89312a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Publisher/Publisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
use Convenia\Pigeon\Drivers\DriverContract;
use Illuminate\Foundation\Application;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use PhpAmqpLib\Message\AMQPMessage;
use PhpAmqpLib\Wire\AMQPTable;
use Illuminate\Support\Str;

class Publisher implements PublisherContract
{
Expand Down
1 change: 1 addition & 0 deletions tests/Integration/Consumer/ConsumerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public function test_it_should_throw_timeout_with_multiple()

/**
* @requires extension pcntl
*
* @
*/
public function test_it_should_handle_sigterm_signal()
Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/Publisher/PublisherTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

use Convenia\Pigeon\Drivers\Driver;
use Convenia\Pigeon\Tests\Integration\TestCase;
use Illuminate\Support\Str;
use PhpAmqpLib\Message\AMQPMessage;
use PhpAmqpLib\Wire\AMQPTable;
use Illuminate\Support\Str;

class PublisherTest extends TestCase
{
Expand Down
3 changes: 1 addition & 2 deletions tests/Unit/DriverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function ($message, $exchange, $event) use ($key, $value, $event_name) {
$app_headers = $message->get('application_headers');

return ($app_headers instanceof AMQPTable)
&& (array_key_exists($key, $app_headers->getNativeData()))
&& array_key_exists($key, $app_headers->getNativeData())
&& ($app_headers->getNativeData()[$key] === $value)
&& ($event === $event_name)
&& ($exchange === Driver::EVENT_EXCHANGE);
Expand Down Expand Up @@ -253,7 +253,6 @@ public function test_it_should_return_props_with_user_defined()

public function test_it_should_return_props_without_dead_letter()
{

// Setup
$this->app['config']->set('pigeon.dead', null);

Expand Down

0 comments on commit e89312a

Please sign in to comment.