From 4d1d87da2c4370fbeafbc35407e3a6b56c637e51 Mon Sep 17 00:00:00 2001 From: Nikita Mikhaylov Date: Tue, 20 Sep 2022 22:53:09 +0000 Subject: [PATCH] Delete garbage --- .../tests/gtest_async_inserts.cpp | 63 ------------------- 1 file changed, 63 deletions(-) delete mode 100644 src/Interpreters/tests/gtest_async_inserts.cpp diff --git a/src/Interpreters/tests/gtest_async_inserts.cpp b/src/Interpreters/tests/gtest_async_inserts.cpp deleted file mode 100644 index 0720592b8a7..00000000000 --- a/src/Interpreters/tests/gtest_async_inserts.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include - -#include -#include -#include "Processors/Executors/PullingPipelineExecutor.h" - -#include -#include -#include -#include -#include -#include -#include -#include "Common/Exception.h" - -using namespace DB; - -static SharedContextHolder shared_context; -static ContextMutablePtr context; - -static bool initialize() -{ - try - { - shared_context = Context::createShared(); - context = Context::createGlobal(shared_context.get()); - context->makeGlobalContext(); - context->setApplicationType(Context::ApplicationType::LOCAL); - - // registerFunctions(); - // registerAggregateFunctions(); - // registerTableFunctions(); - // registerStorages(); - // registerDictionaries(); - // registerDisks(); - // registerFormats(); - - return true; - } - catch (...) - { - tryLogCurrentException(__PRETTY_FUNCTION__); - throw; - } -} - -[[ maybe_unused ]] static bool initialized = initialize(); - -TEST(AsyncInsertQueue, SimpleTest) -{ - try - { - auto io = executeQuery("CREATE TABLE SimpleTest ENGINE=Memory()", context, true, QueryProcessingStage::Complete); - PullingPipelineExecutor executor(io.pipeline); - Block res; - while (!res && executor.pull(res)); - } - catch (...) - { - tryLogCurrentException(__PRETTY_FUNCTION__); - } - -}