Merge pull request #60710 from ClickHouse/speed-up-unit-tests

Improve unit tests
This commit is contained in:
Alexey Milovidov 2024-03-03 23:56:17 +03:00 committed by GitHub
commit 356e8cae39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 3 deletions

View File

@ -1,12 +1,10 @@
#include <gtest/gtest.h>
#include <Columns/ColumnsNumber.h>
#include <Columns/ColumnString.h>
#include <Columns/ColumnFixedString.h>
#include <Columns/ColumnArray.h>
#include <Columns/ColumnConst.h>
#include <Columns/ColumnDecimal.h>
#include <Columns/ColumnLowCardinality.h>
#include <Columns/ColumnNullable.h>
#include <Columns/ColumnTuple.h>
@ -14,7 +12,6 @@
#include <DataTypes/DataTypesNumber.h>
#include <Common/WeakHash.h>
#include <base/hex.h>
#include <unordered_map>
#include <iostream>

View File

@ -1,3 +1,9 @@
#if !defined(SANITIZER)
/// This test is slow due to exhaustive checking of time zones.
/// Better to replace with randomization.
/// Also, recommended to replace with a functional test for better maintainability.
#include <Common/DateLUT.h>
#include <Common/DateLUTImpl.h>
@ -548,3 +554,5 @@ INSTANTIATE_TEST_SUITE_P(AllTimezones_Year1970,
// {0, 0 + 11 * 3600 * 24 + 12, 11},
}))
);
#endif