ClickHouse/tests/queries/0_stateless/02157_readonly_system_suspend.sh
Alexey Milovidov fbe7680544 Add a test
2021-12-30 23:45:02 +03:00

10 lines
287 B
Bash
Executable File

#!/usr/bin/env bash
CLICKHOUSE_CLIENT_SERVER_LOGS_LEVEL=none
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
$CLICKHOUSE_CLIENT --readonly 1 --query "SYSTEM SUSPEND FOR 1 SECOND" 2>&1 | grep -c -F 'Code: 164'