From dc7d3d521a639efefff3e519ce0a9860d8db6ea7 Mon Sep 17 00:00:00 2001 From: Niklas Keller Date: Sat, 13 Apr 2024 19:22:28 +0200 Subject: [PATCH] Fix ResourceOutputStreamTest on Windows --- test/ResourceOutputStreamTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/ResourceOutputStreamTest.php b/test/ResourceOutputStreamTest.php index a1441d7..d6c2dfa 100644 --- a/test/ResourceOutputStreamTest.php +++ b/test/ResourceOutputStreamTest.php @@ -49,6 +49,8 @@ public function testBrokenPipe(): ?\Generator $this->expectException(StreamException::class); $this->expectExceptionMessage(/* S|s */ "end of 6 bytes failed with errno=32 Broken pipe"); + // The first write still succeeds somehow on Windows... + yield $stream->write("foobar"); yield $stream->write("foobar"); }