Skip to content

Commit e39f9df

Browse files
authored
Merge pull request #3 from noplanman/develop
Make sure the webhook is not set when testing live getUpdates method! Also, the problem was that concurrent travis test interfered with each other. Limiting concurrent jobs to 1 should solve this.
2 parents bbf8142 + 2b381d1 commit e39f9df

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/BotManagerTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,9 @@ public function testGetUpdatesLiveBot()
337337

338338
public function testGetUpdatesLoopLiveBot()
339339
{
340+
// Webhook must NOT be set for this to work!
341+
$this->testUnsetWebhookViaRunLiveBot();
342+
340343
// Looping for 5 seconds should be enough to get a result.
341344
$_GET = ['l' => 5];
342345
$botManager = new BotManager(ParamsTest::$live_params);

0 commit comments

Comments
 (0)