From 50002653fe66851a4c4f2af349db29d06c65fe87 Mon Sep 17 00:00:00 2001 From: "ducle.canh" Date: Wed, 21 Jun 2023 12:11:13 +0800 Subject: [PATCH] add a test to limit client max opening fd --- .../0_stateless/02790_client_max_opening_fd.reference | 1 + tests/queries/0_stateless/02790_client_max_opening_fd.sh | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 tests/queries/0_stateless/02790_client_max_opening_fd.reference create mode 100755 tests/queries/0_stateless/02790_client_max_opening_fd.sh diff --git a/tests/queries/0_stateless/02790_client_max_opening_fd.reference b/tests/queries/0_stateless/02790_client_max_opening_fd.reference new file mode 100644 index 00000000000..d00491fd7e5 --- /dev/null +++ b/tests/queries/0_stateless/02790_client_max_opening_fd.reference @@ -0,0 +1 @@ +1 diff --git a/tests/queries/0_stateless/02790_client_max_opening_fd.sh b/tests/queries/0_stateless/02790_client_max_opening_fd.sh new file mode 100755 index 00000000000..289486ce389 --- /dev/null +++ b/tests/queries/0_stateless/02790_client_max_opening_fd.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +# shellcheck source=../shell_config.sh +. "$CUR_DIR"/../shell_config.sh + +ulimit -n 1024 + +${CLICKHOUSE_CLIENT} --query "SELECT 1"