mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
ability to ignore tests by returning false
This commit is contained in:
parent
52a0d0459d
commit
cb4ea65bc8
@ -48,10 +48,10 @@ test = function(name, action) {
|
||||
name = ' ' + name;
|
||||
}
|
||||
test.tabout += 2;
|
||||
process.stdout.write('.');
|
||||
|
||||
try{
|
||||
global.TEST_RESULTS.testCount++;
|
||||
action();
|
||||
process.stdout.write( action() === false ? '?' : '.');
|
||||
}catch(e) {
|
||||
console.log('');
|
||||
console.log(name);
|
||||
@ -91,3 +91,12 @@ var p = MemoryStream.prototype;
|
||||
p.write = function(packet) {
|
||||
this.packets.push(packet);
|
||||
};
|
||||
|
||||
createClient = function() {
|
||||
var stream = new MemoryStream();
|
||||
stream.readyState = "open";
|
||||
var client = new Client({
|
||||
stream: stream
|
||||
});
|
||||
client.connect();
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user