Skip to content

Commit

Permalink
Test if the line in contrib/postgres/test.sql is the culprit
Browse files Browse the repository at this point in the history
  • Loading branch information
murfffi committed Dec 7, 2024
1 parent e0e0807 commit db35474
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions contrib/postgres/test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ insert into authors (name) values

\echo `echo hello`

select :"COLNAME" from authors where :COLNAME like '%' || :'NAME' || '%'

\print \raw

\g
Expand Down
2 changes: 2 additions & 0 deletions testcli.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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
}
Expand Down

0 comments on commit db35474

Please sign in to comment.