diff options
author | Ross Burton <ross@linux.intel.com> | 2010-05-13 16:01:17 +0100 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2010-05-13 16:01:17 +0100 |
commit | 7acb87bacb745397aa0a46d81a034ba9dcf7e57a (patch) | |
tree | 4942502b5c90c4eab1a0b17f3ff0c214420b3dc5 | |
parent | ce878dc75986707ccfdda4c861a0f5880978a856 (diff) | |
download | librest-7acb87bacb745397aa0a46d81a034ba9dcf7e57a.tar.gz |
tests/oauth: don't use _run
-rw-r--r-- | tests/oauth.c | 6 |
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); |