From 5d473eddcf508dd522cce731f50d5df7ace908d8 Mon Sep 17 00:00:00 2001 From: sunxyw Date: Tue, 3 Jan 2023 23:45:38 +0800 Subject: [PATCH] mark network io test as incomplete --- tests/ZM/Utils/ZMRequestTest.php | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/tests/ZM/Utils/ZMRequestTest.php b/tests/ZM/Utils/ZMRequestTest.php index da23004f..2d38d32c 100644 --- a/tests/ZM/Utils/ZMRequestTest.php +++ b/tests/ZM/Utils/ZMRequestTest.php @@ -15,18 +15,20 @@ class ZMRequestTest extends TestCase { public function testPost() { - $r = ZMRequest::post('http://httpbin.org/post', [], 'niubi=123'); - $this->assertStringContainsString('123', $r); - $r2 = ZMRequest::post('http://httpbin.org/post', ['User-Agent' => 'test'], 'oijoij=ooo', [], false); - $this->assertInstanceOf(ResponseInterface::class, $r2); - $this->assertStringContainsString('ooo', $r2->getBody()->getContents()); + $this->markTestIncomplete('Potential dead on Windows'); +// $r = ZMRequest::post('http://httpbin.org/post', [], 'niubi=123'); +// $this->assertStringContainsString('123', $r); +// $r2 = ZMRequest::post('http://httpbin.org/post', ['User-Agent' => 'test'], 'oijoij=ooo', [], false); +// $this->assertInstanceOf(ResponseInterface::class, $r2); +// $this->assertStringContainsString('ooo', $r2->getBody()->getContents()); } public function testGet() { - $r = ZMRequest::get('http://httpbin.org/get', [ - 'X-Test' => '123', - ]); - $this->assertStringContainsString('123', $r); + $this->markTestIncomplete('Potential dead on Windows'); +// $r = ZMRequest::get('http://httpbin.org/get', [ +// 'X-Test' => '123', +// ]); +// $this->assertStringContainsString('123', $r); } }