Fix annoying test

This commit is contained in:
Kseniia Sumarokova 2023-08-01 11:21:46 +02:00 committed by GitHub
parent cbedc5553c
commit 16851040df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -35,7 +35,7 @@ FileCacheKey FileCacheKey::random()
FileCacheKey FileCacheKey::fromKeyString(const std::string & key_str) FileCacheKey FileCacheKey::fromKeyString(const std::string & key_str)
{ {
if (key_str.size() != 32) if (key_str.size() != 32)
throw Exception(ErrorCodes::BAD_ARGUMENTS, "Invalid key: {}", key_str); throw Exception(ErrorCodes::BAD_ARGUMENTS, "Invalid cache key hex: {}", key_str);
return FileCacheKey(unhexUInt<UInt128>(key_str.data())); return FileCacheKey(unhexUInt<UInt128>(key_str.data()));
} }

View File

@ -24,7 +24,7 @@ $CLICKHOUSE_CLIENT --query_id "$query_id" --query "SELECT * FROM test FORMAT Nul
$CLICKHOUSE_CLIENT -nm --query """ $CLICKHOUSE_CLIENT -nm --query """
SYSTEM DROP FILESYSTEM CACHE '$disk_name' KEY kek; SYSTEM DROP FILESYSTEM CACHE '$disk_name' KEY kek;
""" 2>&1 | grep -q "Invalid key: kek" && echo "OK" || echo "FAIL" """ 2>&1 | grep -q "Invalid cache key hex: kek" && echo "OK" || echo "FAIL"
${CLICKHOUSE_CLIENT} -q " system flush logs" ${CLICKHOUSE_CLIENT} -q " system flush logs"