JSONRPC: Fix notification return behavior

This commit is contained in:
HolonProduction
2025-04-04 10:41:18 +02:00
parent 8bd9cdeea6
commit a18d6e48c9
3 changed files with 95 additions and 13 deletions
+6
View File
@@ -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