summaryrefslogtreecommitdiff
path: root/tests/custom-serialize.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/custom-serialize.c')
-rw-r--r--tests/custom-serialize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/custom-serialize.c b/tests/custom-serialize.c
index 3f8cb80..c6b801f 100644
--- a/tests/custom-serialize.c
+++ b/tests/custom-serialize.c
@@ -70,6 +70,7 @@ custom_proxy_call_serialize (RestProxyCall *self,
*content_type = g_strdup ("application/json");
*content = g_strdup ("{}");
*content_len = strlen (*content);
+ rest_proxy_call_set_function (self, "ping");
return TRUE;
}
@@ -137,7 +138,7 @@ main (int argc, char **argv)
proxy = rest_proxy_new (url, FALSE);
call = g_object_new (REST_TYPE_CUSTOM_PROXY_CALL, "proxy", proxy, NULL);
- rest_proxy_call_set_function (call, "ping");
+ rest_proxy_call_set_function (call, "wrong-function");
if (!rest_proxy_call_sync (call, &error)) {
g_printerr ("Call failed: %s\n", error->message);