summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/oauth.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/oauth.c b/tests/oauth.c
index 22f846e..4b25bf9 100644
--- a/tests/oauth.c
+++ b/tests/oauth.c
@@ -62,7 +62,7 @@ main (int argc, char **argv)
call = rest_proxy_new_call (proxy);
rest_proxy_call_set_function (call, "echo_api.php");
rest_proxy_call_add_param (call, "foo", "bar");
- if (!rest_proxy_call_run (call, NULL, &error))
+ if (!rest_proxy_call_sync (call, &error))
g_error ("Cannot make call: %s", error->message);
g_assert_cmpstr (rest_proxy_call_get_payload (call), ==, "foo=bar");
g_object_unref (call);
@@ -70,7 +70,7 @@ main (int argc, char **argv)
call = rest_proxy_new_call (proxy);
rest_proxy_call_set_function (call, "echo_api.php");
rest_proxy_call_add_param (call, "numbers", "1234567890");
- if (!rest_proxy_call_run (call, NULL, &error))
+ if (!rest_proxy_call_sync (call, &error))
g_error ("Cannot make call: %s", error->message);
g_assert_cmpstr (rest_proxy_call_get_payload (call), ==, "numbers=1234567890");
g_object_unref (call);
@@ -78,7 +78,7 @@ main (int argc, char **argv)
call = rest_proxy_new_call (proxy);
rest_proxy_call_set_function (call, "echo_api.php");
rest_proxy_call_add_param (call, "escape", "!£$%^&*()");
- if (!rest_proxy_call_run (call, NULL, &error))
+ if (!rest_proxy_call_sync (call, &error))
g_error ("Cannot make call: %s", error->message);
g_assert_cmpstr (rest_proxy_call_get_payload (call), ==, "escape=%21%C2%A3%24%25%5E%26%2A%28%29");
g_object_unref (call);