ClickHouse/tests/queries/0_stateless/02160_client_autocomplete_parse_query.reference
Azat Khuzhin 72dd5a2d2f Fix 02160_client_autocomplete_parse_query
Sad (since I wanted to make the test a little bit cleaner/easier to
understand), but you cannot use send_user in tests, since expect
send_user works only if stdin is a tty, so the following will fail (so
as in CI):

    $ ./tests/clickhouse-test --database default 02160  < /dev/null
    Using queries from '/src/ch/clickhouse-upstream/tests/queries' directory
    Using clickhouse-client as client program (expecting split build)
    Connecting to ClickHouse server... OK

    Running 1 stateless tests (MainProcess).

    02160_client_autocomplete_parse_query:                                  [ FAIL ] - return code: 1
    send: spawn id exp0 not open
        while executing
    "send_user "Completion loaded\n""
        (file "/src/ch/clickhouse-upstream/tests/queries/0_stateless/02160_client_autocomplete_parse_query.expect" line 40)
    , result:

    stdout:

    Database: default
2021-12-28 10:05:14 +03:00

0 lines
Plaintext