JSONRPC: Fix notification return behavior
This commit is contained in:
parent
8bd9cdeea6
commit
a18d6e48c9
3 changed files with 95 additions and 13 deletions
|
|
@ -79,4 +79,10 @@ void test_process_action_bad_method(const Dictionary &p_in) {
|
|||
check_error_no_method(out_dict);
|
||||
}
|
||||
|
||||
void test_no_response(const Variant &p_in) {
|
||||
TestClassJSONRPC json_rpc = TestClassJSONRPC();
|
||||
const Variant &res = json_rpc.process_action(p_in, true);
|
||||
CHECK(res.get_type() == Variant::NIL);
|
||||
}
|
||||
|
||||
} // namespace TestJSONRPC
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue