Skip to content

Commit

Permalink
Print error message when unknown dcp op received
Browse files Browse the repository at this point in the history
Change-Id: Iafb1b328a575edf56aa4886e0208d8316bd36979
Reviewed-on: http://review.couchbase.org/53978
Reviewed-by: Chiyoung Seo <chiyoung@couchbase.com>
Tested-by: Chiyoung Seo <chiyoung@couchbase.com>
  • Loading branch information
abhinavdangeti authored and chiyoung committed Jul 31, 2015
1 parent b1f5b72 commit b33f9fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/ep_testsuite.cc
Expand Up @@ -4102,8 +4102,10 @@ static void dcp_stream(ENGINE_HANDLE *h, ENGINE_HANDLE_V1 *h1, const char *name,
*/
break;
default:
break;
abort();
// Aborting ...
std::stringstream ss;
ss << "Unknown DCP operation: " << dcp_last_op;
check(false, ss.str().c_str());
}
if (dcp_last_op != PROTOCOL_BINARY_CMD_DCP_STREAM_END) {
dcp_last_op = 0;
Expand Down

0 comments on commit b33f9fe

Please sign in to comment.