Skip to content

Commit

Permalink
Fix test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Apr 13, 2024
1 parent 07d7ff5 commit a453d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/ResourceOutputStreamTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function testClosedRemoteSocket(): ?\Generator
\fclose($b);

$this->expectException(StreamException::class);
$this->expectExceptionMessage(/* S|s */ "end of 6 bytes failed with errno=32 Broken pipe");
$this->expectExceptionMessage(/* S|s */ "end of 6 bytes failed with errno=" . (\stripos(PHP_OS, "win") === 0 ? "10053" : "32 Broken pipe"));

// The first write still succeeds somehow...
yield $stream->write("foobar");
Expand Down

0 comments on commit a453d66

Please sign in to comment.