diff options
author | Ross Burton <ross@linux.intel.com> | 2009-02-10 16:42:18 +0000 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2009-02-10 16:42:18 +0000 |
commit | 0ae4797dcdf78ac33c31790cfca9c41837b27fd7 (patch) | |
tree | 8b0153d9a7f7b43f9e61e69330435b7b7a9ea89a | |
parent | f641e8f529f06ac1ec8cfb4a7db6e86bce20e5b4 (diff) |
Rename error to status
-rw-r--r-- | tests/echo.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/echo.c b/tests/echo.c index 54ca3a9..327dd3b 100644 --- a/tests/echo.c +++ b/tests/echo.c @@ -31,7 +31,7 @@ server_callback (SoupServer *server, SoupMessage *msg, value, strlen (value)); soup_message_set_status (msg, SOUP_STATUS_OK); } - else if (g_str_equal (path, "/error")) { + else if (g_str_equal (path, "/status")) { const char *value; int status; @@ -148,13 +148,13 @@ reverse_test (RestProxy *proxy) } static void -error_test (RestProxy *proxy, int status) +status_error_test (RestProxy *proxy, int status) { RestProxyCall *call; GError *error = NULL; call = rest_proxy_new_call (proxy); - rest_proxy_call_set_function (call, "error"); + rest_proxy_call_set_function (call, "status"); rest_proxy_call_add_param (call, "status", g_strdup_printf ("%d", status)); if (rest_proxy_call_run (call, NULL, &error)) { @@ -197,8 +197,8 @@ main (int argc, char **argv) ping_test (proxy); echo_test (proxy); reverse_test (proxy); - error_test (proxy, SOUP_STATUS_BAD_REQUEST); - error_test (proxy, SOUP_STATUS_NOT_IMPLEMENTED); + status_error_test (proxy, SOUP_STATUS_BAD_REQUEST); + status_error_test (proxy, SOUP_STATUS_NOT_IMPLEMENTED); return errors != 0; } |