Skip to content

Commit

Permalink
sharness/rpc: cover variadic respond_error
Browse files Browse the repository at this point in the history
  • Loading branch information
garlick committed May 30, 2018
1 parent 10226c3 commit 6c88b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/rpc/rpc.c
Expand Up @@ -72,7 +72,7 @@ void rpctest_echo_error_cb (flux_t *h, flux_msg_handler_t *mh,
if (flux_request_unpack (msg, NULL, "{s:i s?:s}",
"errnum", &errnum, "errstr", &errstr) < 0)
goto error;
if (flux_respond_error (h, msg, errnum, errstr) < 0)
if (flux_respond_error (h, msg, errnum, "Error:", errstr) < 0)
BAIL_OUT ("flux_respond_error: %s", flux_strerror (errno));
return;
error:
Expand Down Expand Up @@ -267,7 +267,7 @@ void test_error (flux_t *h)
ok (flux_rpc_get (f, NULL) < 0 && errno == 69,
"flux_rpc_get failed with expected errno");
errstr = flux_rpc_get_error (f);
ok (errstr != NULL && !strcmp (errstr, "Hello world"),
ok (errstr != NULL && !strcmp (errstr, "Error: Hello world"),
"flux_rpc_get_error returned expected error string");
flux_future_destroy (f);

Expand Down

0 comments on commit 6c88b1d

Please sign in to comment.