From 63c05ad022966898a6658d579c126e9eec467289 Mon Sep 17 00:00:00 2001 From: thefosk Date: Tue, 7 Jan 2014 05:42:58 +0100 Subject: [PATCH] fixing tests --- test/Unirest/UnirestTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Unirest/UnirestTest.php b/test/Unirest/UnirestTest.php index c2078b1..ecf1e49 100644 --- a/test/Unirest/UnirestTest.php +++ b/test/Unirest/UnirestTest.php @@ -88,6 +88,8 @@ class UnirestTest extends UnitTestCase $response = Unirest::get("http://httpbin.org/delay/1"); $this->assertEqual(200, $response->code); + + Unirest::timeout(null); // Cleaning timeout for the other tests } public function testDefaultHeader() @@ -100,7 +102,6 @@ class UnirestTest extends UnitTestCase $properties = get_object_vars($headers); $this->assertTrue(array_key_exists("Hello", $properties)); $this->assertEqual("custom", $headers->Hello); - $response = Unirest::get("http://httpbin.org/get"); $this->assertEqual(200, $response->code); @@ -108,7 +109,6 @@ class UnirestTest extends UnitTestCase $properties = get_object_vars($headers); $this->assertTrue(array_key_exists("Hello", $properties)); $this->assertEqual("custom", $headers->Hello); - Unirest::clearDefaultHeaders(); $response = Unirest::get("http://httpbin.org/get");