From 13a3d75a57018f85b520ceebd6350a91cf9598b9 Mon Sep 17 00:00:00 2001 From: diego Date: Tue, 10 Jan 2023 19:34:39 +0100 Subject: [PATCH] [misc] test correction --- test/integration/datatype/test-time.js | 3 ++- types/mariadb-tests.ts | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/test/integration/datatype/test-time.js b/test/integration/datatype/test-time.js index d3724a9..744f461 100644 --- a/test/integration/datatype/test-time.js +++ b/test/integration/datatype/test-time.js @@ -6,7 +6,8 @@ const { isXpand } = require('../../base'); describe('time', () => { it('time data', async function () { - if (!base.utf8Collation()) this.skip(); + // skipping test for mysql since TIME doesn't have microseconds + if (!shareConn.info.isMariaDB()) this.skip(); await shareConn.query('DROP TABLE IF EXISTS time_data'); await shareConn.query('CREATE TABLE time_data(t1 time(6), t2 time(6))'); diff --git a/types/mariadb-tests.ts b/types/mariadb-tests.ts index 2f5616b..6c7c4c8 100644 --- a/types/mariadb-tests.ts +++ b/types/mariadb-tests.ts @@ -76,9 +76,6 @@ async function testMisc(): Promise { const res2 = await connection.query('INSERT INTO myTable VALUE (1)'); console.log(res2.insertId === 1); - const res3 = await connection.query('INSERT INTO myTable VALUE (1)'); - console.log(res3[0].tt === 1); - rows = await connection.query('SELECT 1 + 1 AS solution'); console.log(rows[0].solution === 2);