mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Merge remote-tracking branch 'origin/aku/error-context' into HEAD
This commit is contained in:
commit
0635841dc9
@ -49,21 +49,15 @@ TEST(Processors, PortsNotConnected)
|
||||
processors.emplace_back(std::move(source));
|
||||
processors.emplace_back(std::move(sink));
|
||||
|
||||
auto exec = [&]()
|
||||
try
|
||||
{
|
||||
|
||||
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;
|
||||
}
|
||||
};
|
||||
|
||||
ASSERT_THROW(exec(), DB::Exception);
|
||||
PipelineExecutor executor(processors);
|
||||
executor.execute(1);
|
||||
ASSERT_TRUE(false) << "Should have thrown.";
|
||||
}
|
||||
catch (DB::Exception & e)
|
||||
{
|
||||
std::cout << e.displayText() << std::endl;
|
||||
ASSERT_TRUE(e.displayText().find("pipeline") != std::string::npos) << "Expected 'pipeline', got: " << e.displayText();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user