From db354748f5af4df783be1e5b49ab8fd4c2b0d3a4 Mon Sep 17 00:00:00 2001 From: Marin Nozhchev Date: Sat, 7 Dec 2024 13:44:42 +0200 Subject: [PATCH] Test if the line in contrib/postgres/test.sql is the culprit --- contrib/postgres/test.sql | 2 -- testcli.go | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/postgres/test.sql b/contrib/postgres/test.sql index 9fd1d39e67f..8fc92010b64 100644 --- a/contrib/postgres/test.sql +++ b/contrib/postgres/test.sql @@ -66,8 +66,6 @@ insert into authors (name) values \echo `echo hello` -select :"COLNAME" from authors where :COLNAME like '%' || :'NAME' || '%' - \print \raw \g diff --git a/testcli.go b/testcli.go index 6900afa24d5..565bada0fc8 100644 --- a/testcli.go +++ b/testcli.go @@ -119,6 +119,7 @@ func (test Test) do(ctx context.Context, binpath string, timeout time.Duration) gexpect.SetEnv(test.env), gexpect.Tee(&noopWriteCloser{os.Stdout}), ) + exp.Options(gexpect.Verbose(true)) if err != nil { return err } @@ -127,6 +128,7 @@ func (test Test) do(ctx context.Context, binpath string, timeout time.Duration) return err } for _, line := range bytes.Split(buf, []byte{'\n'}) { + time.Sleep(100 * time.Millisecond) if err := exp.Send(string(line) + "\n"); err != nil { return err }