Skip to content

Commit

Permalink
Fix error in json_handler from previous commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
koczadly committed Sep 7, 2020
1 parent 7963bc5 commit bae7031
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nano/node/json_handler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4867,7 +4867,7 @@ void nano::json_handler::work_cancel ()
if (!ec)
{
node.observers.work_cancel.notify (hash);
rpc_l->response_l.put ("success", "");
response_l.put ("success", "");
}
response_errors ();
}
Expand Down
2 changes: 1 addition & 1 deletion nano/rpc_test/rpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2999,7 +2999,7 @@ TEST (rpc, work_cancel)
ASSERT_TIMELY (10s, response1.status != 0);
ASSERT_EQ (200, response1.status);
ASSERT_NO_ERROR (ec);
std::string success (response.json.get<std::string> ("success"));
std::string success (response1.json.get<std::string> ("success"));
ASSERT_TRUE (success.empty ());
}
}
Expand Down

0 comments on commit bae7031

Please sign in to comment.