Update test.

This commit is contained in:
Nikolai Kochetov 2020-03-25 19:34:46 +03:00
parent 0b1ad7f7c8
commit 8948a96c60

View File

@ -51,14 +51,18 @@ TEST(Processors, PortsNotConnected)
PipelineExecutor executor(processors);
ASSERT_THROW(
try
auto exec = [&]()
{
executor.execute(1);
}
catch (DB::Exception & e)
{
std::cout << e.displayText() << std::endl;
throw;
}, DB::Exception);
try
{
executor.execute(1);
}
catch (DB::Exception & e)
{
std::cout << e.displayText() << std::endl;
throw;
}
};
ASSERT_THROW(exec(), DB::Exception);
}