|
8 | 8 | #include <numeric> |
9 | 9 | #include <thread> |
10 | 10 |
|
| 11 | +#include <Core/ServerUUID.h> |
11 | 12 | #include <Common/iota.h> |
12 | 13 | #include <Common/randomSeed.h> |
13 | 14 | #include <DataTypes/DataTypesNumber.h> |
@@ -333,6 +334,7 @@ class FileCacheTest : public ::testing::Test |
333 | 334 |
|
334 | 335 | TEST_F(FileCacheTest, LRUPolicy) |
335 | 336 | { |
| 337 | + ServerUUID::setRandomForUnitTests(); |
336 | 338 | DB::ThreadStatus thread_status; |
337 | 339 |
|
338 | 340 | /// To work with cache need query_id and query context. |
@@ -807,6 +809,7 @@ TEST_F(FileCacheTest, LRUPolicy) |
807 | 809 |
|
808 | 810 | TEST_F(FileCacheTest, writeBuffer) |
809 | 811 | { |
| 812 | + ServerUUID::setRandomForUnitTests(); |
810 | 813 | FileCacheSettings settings; |
811 | 814 | settings.max_size = 100; |
812 | 815 | settings.max_elements = 5; |
@@ -938,6 +941,7 @@ static size_t readAllTemporaryData(TemporaryFileStream & stream) |
938 | 941 |
|
939 | 942 | TEST_F(FileCacheTest, temporaryData) |
940 | 943 | { |
| 944 | + ServerUUID::setRandomForUnitTests(); |
941 | 945 | DB::FileCacheSettings settings; |
942 | 946 | settings.max_size = 10_KiB; |
943 | 947 | settings.max_file_segment_size = 1_KiB; |
@@ -1044,6 +1048,7 @@ TEST_F(FileCacheTest, temporaryData) |
1044 | 1048 |
|
1045 | 1049 | TEST_F(FileCacheTest, CachedReadBuffer) |
1046 | 1050 | { |
| 1051 | + ServerUUID::setRandomForUnitTests(); |
1047 | 1052 | DB::ThreadStatus thread_status; |
1048 | 1053 |
|
1049 | 1054 | /// To work with cache need query_id and query context. |
@@ -1120,6 +1125,7 @@ TEST_F(FileCacheTest, CachedReadBuffer) |
1120 | 1125 |
|
1121 | 1126 | TEST_F(FileCacheTest, TemporaryDataReadBufferSize) |
1122 | 1127 | { |
| 1128 | + ServerUUID::setRandomForUnitTests(); |
1123 | 1129 | /// Temporary data stored in cache |
1124 | 1130 | { |
1125 | 1131 | DB::FileCacheSettings settings; |
@@ -1167,6 +1173,7 @@ TEST_F(FileCacheTest, TemporaryDataReadBufferSize) |
1167 | 1173 |
|
1168 | 1174 | TEST_F(FileCacheTest, SLRUPolicy) |
1169 | 1175 | { |
| 1176 | + ServerUUID::setRandomForUnitTests(); |
1170 | 1177 | DB::ThreadStatus thread_status; |
1171 | 1178 | std::string query_id = "query_id"; /// To work with cache need query_id and query context. |
1172 | 1179 |
|
|
0 commit comments