mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Update test.
This commit is contained in:
parent
0b1ad7f7c8
commit
8948a96c60
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user