20 #include <ripple/beast/unit_test.h>
21 #include <ripple/core/JobQueue.h>
22 #include <test/jtx/Env.h>
36 JobQueue& jQueue = env.app().getJobQueue();
46 while (jobRan ==
false)
53 using namespace std::chrono_literals;
72 JobQueue& jQueue = env.app().getJobQueue();
80 while (++yieldCount < 4)
83 BEAST_EXPECT(coro !=
nullptr);
86 while (yieldCount == 0)
91 while (coro->runnable())
93 BEAST_EXPECT(coro->post());
94 while (old == yieldCount)
98 BEAST_EXPECT(++old == yieldCount);
100 BEAST_EXPECT(yieldCount == 4);
109 while (++yieldCount < 4)
124 int old = yieldCount;
125 while (coro->runnable())
128 BEAST_EXPECT(++old == yieldCount);
130 BEAST_EXPECT(yieldCount == 4);
136 using namespace std::chrono_literals;
149 BEAST_EXPECT(coro ==
nullptr);