Fixed error code of test assertion in client

This commit is contained in:
Alexey Milovidov 2020-01-12 16:47:56 +03:00
parent 03cdacce43
commit 797b1b9cd5
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ namespace DB
namespace ErrorCodes
{
extern const int LOGICAL_ERROR;
extern const int UNEXPECTED_ERROR_CODE;
}
@ -74,7 +74,7 @@ public:
std::cerr << "Success when error expected. It expects server error "
<< server_error << ", client error " << client_error << "." << std::endl;
got_exception = true;
last_exception = std::make_unique<Exception>("Success when error expected", ErrorCodes::LOGICAL_ERROR); /// return error to OS
last_exception = std::make_unique<Exception>("Success when error expected", ErrorCodes::UNEXPECTED_ERROR_CODE); /// return error to OS
return false;
}

View File

@ -476,6 +476,7 @@ namespace ErrorCodes
extern const int CANNOT_CREATE_DATABASE = 501;
extern const int CANNOT_SIGQUEUE = 502;
extern const int AGGREGATE_FUNCTION_THROW = 503;
extern const int UNEXPECTED_ERROR_CODE = 504;
extern const int KEEPER_EXCEPTION = 999;
extern const int POCO_EXCEPTION = 1000;