| 836 | } |
| 837 | |
| 838 | void TCoroTest::TestJoinRescheduleBug() { |
| 839 | using namespace NCoroTestJoinRescheduleBug; |
| 840 | TState state; |
| 841 | { |
| 842 | TContExecutor exec(20000); |
| 843 | exec.Execute(DoMain, &state); |
| 844 | } |
| 845 | UNIT_ASSERT_EQUAL(state.SubAState, EState::Finished); |
| 846 | UNIT_ASSERT_EQUAL(state.SubBState, EState::Finished); |
| 847 | UNIT_ASSERT_EQUAL(state.SubCState, EState::Finished); |
| 848 | } |
| 849 | |
| 850 | void TCoroTest::TestEventQueue() { |
| 851 | NCoro::TEventWaitQueue queue; |