Skip to content

Commit f3bf926

Browse files
karzhenkovandreasbuhr
authored andcommitted
Reduce allowed depth of nested continuations to zero
1 parent de81713 commit f3bf926

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/async_auto_reset_event_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ TEST_CASE("multi-threaded")
144144

145145
cppcoro::sync_wait(cppcoro::when_all(std::move(tasks)));
146146

147-
CHECK_MESSAGE(max_depth < 500, "Maximum depth of nested continuations exceeded");
147+
CHECK_MESSAGE(max_depth == 0, "Nested continuations detected");
148148
}
149149

150150
TEST_SUITE_END();

0 commit comments

Comments
 (0)