Skip to content

Commit ff7d7e5

Browse files
committed
Fixing testcli.go
1 parent 934da0b commit ff7d7e5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

testcli.go

+7-8
Original file line numberDiff line numberDiff line change
@@ -70,43 +70,43 @@ func cliTests() ([]Test, error) {
7070
{
7171
"complex/postgres",
7272
"./contrib/postgres/test.sql",
73-
[]string{"pgsql://postgres:P4ssw0rd@localhost", "--pset=pager=off"},
73+
[]string{"pgsql://postgres:P4ssw0rd@localhost", "--set=PAGER=''", "--pset=pager=off"},
7474
env,
7575
},
7676
{
7777
"complex/mysql",
7878
"./contrib/mysql/test.sql",
79-
[]string{"my://root:P4ssw0rd@localhost", "--pset=pager=off"},
79+
[]string{"my://root:P4ssw0rd@localhost", "--set=PAGER=''", "--pset=pager=off"},
8080
env,
8181
},
8282
{
8383
"complex/sqlite3",
8484
"./contrib/sqlite3/test.sql",
85-
[]string{"sqlite:./testdata/sqlite3_test.db", "--pset=pager=off"},
85+
[]string{"sqlite:./testdata/sqlite3_test.db", "--set=PAGER=''", "--pset=pager=off"},
8686
env,
8787
},
8888
{
8989
"complex/moderncsqlite",
9090
"./contrib/sqlite3/test.sql",
91-
[]string{"mq:./testdata/moderncsqlite_test.db", "--pset=pager=off"},
91+
[]string{"mq:./testdata/moderncsqlite_test.db", "--set=PAGER=''", "--pset=pager=off"},
9292
env,
9393
},
9494
{
9595
"complex/sqlserver",
9696
"./contrib/sqlserver/test.sql",
97-
[]string{"sqlserver://sa:Adm1nP@ssw0rd@localhost/", "--pset=pager=off"},
97+
[]string{"sqlserver://sa:Adm1nP@ssw0rd@localhost/", "--set=PAGER=''", "--pset=pager=off"},
9898
env,
9999
},
100100
{
101101
"complex/cassandra",
102102
"./contrib/cassandra/test.sql",
103-
[]string{"ca://cassandra:cassandra@localhost", "--pset=pager=off"},
103+
[]string{"ca://cassandra:cassandra@localhost", "--set=PAGER=''", "--pset=pager=off"},
104104
env,
105105
},
106106
{
107107
"copy/a_bit_of_everything",
108108
"./testdata/copy.sql",
109-
[]string{"--pset=pager=off"},
109+
[]string{"--set=PAGER=''", "--pset=pager=off"},
110110
env,
111111
},
112112
}, nil
@@ -139,7 +139,6 @@ func (test Test) do(ctx context.Context, binpath string, timeout time.Duration)
139139
defer exp.Close()
140140
return err
141141
}
142-
return exp.Close()
143142
}
144143

145144
type noopWriteCloser struct {

0 commit comments

Comments
 (0)