mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Update test.
This commit is contained in:
parent
7a3daac751
commit
6fd963c805
@ -49,20 +49,21 @@ TEST(Processors, PortsNotConnected)
|
||||
processors.emplace_back(std::move(source));
|
||||
processors.emplace_back(std::move(sink));
|
||||
|
||||
PipelineExecutor executor(processors);
|
||||
|
||||
auto exec = [&]()
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
PipelineExecutor executor(processors);
|
||||
executor.execute(1);
|
||||
}
|
||||
catch (DB::Exception & e)
|
||||
{
|
||||
std::cout << e.displayText() << std::endl;
|
||||
ASSERT_TRUE(e.displayText().find("pipeline") != std::string::npos);
|
||||
throw;
|
||||
}
|
||||
};
|
||||
|
||||
exec();
|
||||
ASSERT_THROW(exec(), DB::Exception);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user