Return error when limit<=0 (#804)

Fix #806
This commit is contained in:
cyan317
2023-08-02 15:34:42 +01:00
committed by GitHub
parent 1804e3e9c0
commit c90bc15959
45 changed files with 832 additions and 562 deletions

View File

@@ -48,7 +48,7 @@ TEST_F(RPCVersionHandlerTest, Default)
runSpawn([&](auto yield) {
auto const handler = AnyHandler{VersionHandler{cfg}};
auto const output = handler.process(static_cast<json::value>(cfg), Context{std::ref(yield)});
auto const output = handler.process(static_cast<json::value>(cfg), Context{yield});
ASSERT_TRUE(output);
// check all against all the correct values