From 415f7fd385fae73429c79d42998a33fa004087a3 Mon Sep 17 00:00:00 2001 From: "J. King" Date: Sat, 16 Dec 2017 17:21:23 -0500 Subject: [PATCH] Fix feed timeout test; improves #113 --- tests/cases/Feed/TestFeedFetching.php | 12 ++++++------ tests/docroot/Feed/Fetching/Timeout.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/cases/Feed/TestFeedFetching.php b/tests/cases/Feed/TestFeedFetching.php index 86611b6..fd1fc0d 100644 --- a/tests/cases/Feed/TestFeedFetching.php +++ b/tests/cases/Feed/TestFeedFetching.php @@ -54,12 +54,6 @@ class TestFeedFetching extends Test\AbstractTest { new Feed(null, $this->base."Fetching/EndlessLoop?i=0"); } - public function testHandleATimeout() { - Arsse::$conf->fetchTimeout = 1; - $this->assertException("timeout", "Feed"); - new Feed(null, $this->base."Fetching/Timeout"); - } - public function testHandleAnOverlyLargeFeed() { Arsse::$conf->fetchSizeLimit = 512; $this->assertException("maxSize", "Feed"); @@ -70,4 +64,10 @@ class TestFeedFetching extends Test\AbstractTest { $this->assertException("invalidCertificate", "Feed"); new Feed(null, "https://localhost:8000/"); } + + public function testHandleATimeout() { + Arsse::$conf->fetchTimeout = 1; + $this->assertException("timeout", "Feed"); + new Feed(null, $this->base."Fetching/Timeout"); + } } diff --git a/tests/docroot/Feed/Fetching/Timeout.php b/tests/docroot/Feed/Fetching/Timeout.php index f841011..cfa7c5f 100644 --- a/tests/docroot/Feed/Fetching/Timeout.php +++ b/tests/docroot/Feed/Fetching/Timeout.php @@ -1,5 +1,5 @@ 404, 'cache' => false,