From 12747ade59297fa06237e7f0f8adcfe76e7ee071 Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sat, 20 Apr 2019 11:30:16 +0200 Subject: [PATCH] ci(travis): Disable Twitter test on CI --- tests/VideoDownloadTest.php | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tests/VideoDownloadTest.php b/tests/VideoDownloadTest.php index 0614d95..87c0ce9 100644 --- a/tests/VideoDownloadTest.php +++ b/tests/VideoDownloadTest.php @@ -244,14 +244,19 @@ class VideoDownloadTest extends TestCase */ public function m3uUrlProvider() { - return [ - [ + $videos = []; + + if (!getenv('CI')) { + // Twitter returns a 429 error when the test is ran too many times. + $videos[] = [ 'https://twitter.com/verge/status/813055465324056576/video/1', 'hls-2176', 'The_Verge_-_This_tiny_origami_robot_can_self-fold_and_complete_tasks-813055465324056576', 'mp4', 'video.twimg.com', - ], - ]; + ]; + } + + return $videos; } /**