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(); });