Skip to content

Commit

Permalink
Fix timing issue in BufferedIOTest
Browse files Browse the repository at this point in the history
  • Loading branch information
FooBarWidget committed Oct 8, 2024
1 parent 4ef3c85 commit 031dc6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/cxx/IOTools/BufferedIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -328,8 +328,10 @@ namespace tut {

TEST_METHOD(30) {
// It blocks until a line can be read or until EOF.
TempThread thr1(boost::bind(writeAfterSomeTime, writer, 20000, "hello"));
TempThread thr2(boost::bind(writeAfterSomeTime, writer, 35000, "\nworld\n."));
TempThread thr([&]() {
writeAfterSomeTime(writer, 20000, "hello");
writeAfterSomeTime(writer, 15000, "\nworld\n.");
});
Timer<> timer1;
ensure_equals(io.readLine(), "hello\n");
ensure_equals(io.getBuffer(), "world\n.");
Expand Down

1 comment on commit 031dc6c

@CamJN
Copy link
Member

@CamJN CamJN commented on 031dc6c Oct 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understand how, but since this commit the nginx integration tests on macOS have been failing. Every single test.

Please sign in to comment.