Skip to content

Commit ebf71a0

Browse files
committed
chore: Fix reactor test
SDB-10154
1 parent fd7346f commit ebf71a0

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

toolbox/io/Reactor.ut.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,14 +153,14 @@ BOOST_AUTO_TEST_CASE(ReactorHighPriorityHook)
153153

154154
auto [s1, s2] = socketpair(UnixStreamProtocol{});
155155

156-
// This is handler for data on s1. It is an expensive function taking ~100ms
156+
// This is handler for data on s1. It is an expensive function taking ~250ms
157157
std::size_t yield_count = 0;
158158
auto on_data_received = [&](CyclTime, int, unsigned) {
159159
WallTime now = WallClock::now();
160-
WallTime end = now + 500ms;
160+
WallTime end = now + 250ms;
161161
while (now < end) {
162-
// wait for 100us, then yield
163-
auto next_stop = now + 1ms;
162+
// wait for 1ms, then yield
163+
auto next_stop = WallClock::now() + 1ms;
164164
while (now < next_stop) {
165165
now = WallClock::now();
166166
}

0 commit comments

Comments
 (0)