mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
tests changed to run locally
This commit is contained in:
parent
1286090ce1
commit
4ebbc8a023
@ -7,16 +7,16 @@ assert.equal(client.database, null);
|
||||
assert.equal(client.port, 5432);
|
||||
|
||||
var user = 'brian';
|
||||
var database = 'hello';
|
||||
var database = 'pgjstest';
|
||||
|
||||
var client = new Client({
|
||||
user: 'briancarlson',
|
||||
database: 'hello',
|
||||
user: user,
|
||||
database: database,
|
||||
port: 321
|
||||
});
|
||||
|
||||
assert.equal(client.user, 'briancarlson');
|
||||
assert.equal(client.database, 'hello');
|
||||
assert.equal(client.user, user);
|
||||
assert.equal(client.database, database);
|
||||
assert.equal(client.port, 321);
|
||||
|
||||
client.port = 5432;
|
||||
|
||||
@ -98,7 +98,6 @@ test('Parser on single messages', function() {
|
||||
assert.equal(result.fields.length, 0);
|
||||
});
|
||||
|
||||
|
||||
var addRow = function(bufferList, name, offset) {
|
||||
return bufferList.addCString(name) //field name
|
||||
.addInt32(offset++) //table id
|
||||
@ -109,7 +108,6 @@ test('Parser on single messages', function() {
|
||||
.addInt16(0) //format code, 0 => text
|
||||
};
|
||||
|
||||
|
||||
var oneRowDescBuff = new BufferList()
|
||||
.addInt16(1);
|
||||
oneRowDescBuff = addRow(oneRowDescBuff, 'id', 1)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user