- Throw error on err

- Spacing
This commit is contained in:
Chris Kleeschulte 2015-09-18 16:15:52 -04:00
parent d794e891dd
commit 391a84f490

View File

@ -208,7 +208,8 @@ describe('P2P Functionality', function() {
peer.sendMessage(txMessage); peer.sendMessage(txMessage);
} }
}); });
async.whilst(function() { async.whilst(
function() {
return txs.length > 0; return txs.length > 0;
}, },
function(callback) { function(callback) {
@ -219,8 +220,10 @@ describe('P2P Functionality', function() {
callback(); callback();
}, },
function(err) { function(err) {
if (err) {
throw err;
}
}); });
}); });
}); });