Skip to content

Commit

Permalink
Fix parseConnection tests for JSON parameters
Browse files Browse the repository at this point in the history
Signed-off-by: petetnt <pete.a.nykanen@gmail.com>
  • Loading branch information
petetnt committed Aug 30, 2021
1 parent 804d0e9 commit 4fda93e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/tape/parse-connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,13 @@ test('#4628, supports mysql / mariadb client JSON parameters', function (t) {

t.deepLooseEqual(
parseConnection(
'mysql://user:password@host:0000/database?ssl={"ca": "should exist"}'
'mysql://user:password@host:1234/database?ssl={"ca": "should exist"}'
),
{
client: 'mysql',
connection: {
host: 'host',
port: '0000',
port: '1234',
user: 'user',
password: 'password',
database: 'database',
Expand All @@ -294,13 +294,13 @@ test('#4628, supports mysql / mariadb client JSON parameters', function (t) {

t.deepLooseEqual(
parseConnection(
'mariadb://user:password@host:0000/database?ssl={"ca": "should exist"}'
'mariadb://user:password@host:1234/database?ssl={"ca": "should exist"}'
),
{
client: 'mariadb',
connection: {
host: 'host',
port: '0000',
port: '1234',
user: 'user',
password: 'password',
database: 'database',
Expand Down

0 comments on commit 4fda93e

Please sign in to comment.