Skip to content

Commit

Permalink
fix test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
trikko committed May 16, 2024
1 parent 3b682db commit 71037a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test-02/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ void test()
sck.connect(new InternetAddress("localhost", 8080));
sck.send(req);

char[] buffer;
char[] data;
ubyte[] buffer;
ubyte[] data;

{
File file = File("big-recv.txt", "w+");
Expand All @@ -320,7 +320,7 @@ void test()
auto ln = sck.receive(buffer);
if (ln <= 0) break;

file.write(buffer[0..ln]);
file.rawWrite(buffer[0..ln]);
}

file.close();
Expand Down

0 comments on commit 71037a4

Please sign in to comment.