Skip to content

Commit

Permalink
increased timeout for pushadmin test
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed Mar 20, 2024
1 parent d08492f commit 5164fbb
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/PushAdminTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@ public function testAdminPublish() {
];
$data = [ 'data' => [ 'foo' => 'bar' ] ];

$res = self::$ably->push->admin->publish( $recipient, $data , true );
$this->assertNull($res);
sleep(3); // It takes some time for the message to show up in the history

self::$ably->push->admin->publish( $recipient, $data , true );
sleep(5); // It takes some time for the message to show up in the history
$channel = self::$ably->channel($channelName);
$history = $channel->history();
$this->assertEquals( 1, count($history->items), 'Expected 1 message' );
Expand Down

0 comments on commit 5164fbb

Please sign in to comment.