From a2b2d5a04955349e47fe58ba09a376c858bab8d9 Mon Sep 17 00:00:00 2001 From: Maratth Date: Sat, 2 Mar 2024 01:01:12 +0100 Subject: [PATCH] Fix test --- test/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.js b/test/index.js index fa2b723..416a4f1 100644 --- a/test/index.js +++ b/test/index.js @@ -475,7 +475,7 @@ describe('Database', function() { db.query('select RET from TEST_FETCH_FAIL', (err, d) => { assert.ok(err, err); - assert.ok(err.message.indexOf('arithmetic exception, numeric overflow, or string truncation, Integer divide by zero.') === 0); + assert.ok(err.message.match(/arithmetic exception, numeric overflow, or string truncation, Integer divide by zero./gi)); done(); });