mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 19:56:00 +00:00
@@ -49,7 +49,7 @@ TEST_F(RPCDefaultProcessorTest, ValidInput)
|
||||
EXPECT_CALL(handler, spec(_)).WillOnce(ReturnRef(spec));
|
||||
EXPECT_CALL(handler, process(Eq(data), _)).WillOnce(Return(data));
|
||||
|
||||
auto const ret = processor(handler, input, Context{std::ref(yield)});
|
||||
auto const ret = processor(handler, input, Context{yield});
|
||||
ASSERT_TRUE(ret); // no error
|
||||
});
|
||||
}
|
||||
@@ -64,7 +64,7 @@ TEST_F(RPCDefaultProcessorTest, NoInputVaildCall)
|
||||
auto const input = json::parse(R"({})");
|
||||
EXPECT_CALL(handler, process(_)).WillOnce(Return(data));
|
||||
|
||||
auto const ret = processor(handler, input, Context{std::ref(yield)});
|
||||
auto const ret = processor(handler, input, Context{yield});
|
||||
ASSERT_TRUE(ret); // no error
|
||||
});
|
||||
}
|
||||
@@ -79,7 +79,7 @@ TEST_F(RPCDefaultProcessorTest, InvalidInput)
|
||||
auto const spec = RpcSpec{{"something", Required{}}};
|
||||
EXPECT_CALL(handler, spec(_)).WillOnce(ReturnRef(spec));
|
||||
|
||||
auto const ret = processor(handler, input, Context{std::ref(yield)});
|
||||
auto const ret = processor(handler, input, Context{yield});
|
||||
ASSERT_FALSE(ret); // returns error
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user