Merge pull request #135 from machunter/master

failing test for issue 6247131
This commit is contained in:
Brian Carlson 2012-06-28 17:25:27 -07:00
commit accb94b211

View File

@ -143,4 +143,17 @@ test('libpq connection string building', function() {
}))
})
test('password contains < and/or > characters', function () {
var sourceConfig = {
user:'brian',
password: 'hello<ther>e',
port: 5432,
host: 'localhost',
database: 'postgres'
}
var connectionString = 'pg://' + sourceConfig.user + ':' + sourceConfig.password + '@' + sourceConfig.host + ':' + sourceConfig.port + '/' + sourceConfig.database;
var config = utils.parseConnectionString(connectionString);
assert.same(config, sourceConfig);
});
})