Skip to content

Commit a990b3a

Browse files
committed
fix
1 parent 1ab2a48 commit a990b3a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bindings/nodejs/tests/binding.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Given("A new Databend Driver Client", async function () {
5252
assert.fail("No connection returned");
5353
}
5454
this.conn = conn;
55-
conn.exec("set timezone='Asia/Shanghai'");
55+
await conn.exec("set timezone='Asia/Shanghai'");
5656
});
5757

5858
Then("Select string {string} should be equal to {string}", async function (input, output) {
@@ -142,7 +142,7 @@ Then("Select types should be expected native types", async function () {
142142
// TIMESTAMP
143143
{
144144
const row = await this.conn.queryRow(
145-
"settings(timezone='Asia/Shanghai') SELECT to_datetime('2020-01-01 12:34:56.789'), to_datetime('2020-01-02 12:34:56.789')",
145+
"SELECT to_datetime('2020-01-01 12:34:56.789'), to_datetime('2020-01-02 12:34:56.789')",
146146
);
147147
assert.deepEqual(row.values(), [new Date("2020-01-01T04:34:56.789Z"), new Date("2020-01-02T04:34:56.789Z")]);
148148
}

0 commit comments

Comments
 (0)