File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
5858Then ( "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 }
You can’t perform that action at this time.
0 commit comments