Shutdown rippled before http server in json rpc test to avoid http server potentially receiving messages due to automatic ledger close interval.

This commit is contained in:
Nicholas Dudfield
2014-02-04 11:00:58 +07:00
committed by Vinnie Falco
parent 123c482a69
commit 83442825e5
2 changed files with 9 additions and 6 deletions

View File

@@ -50,10 +50,10 @@ function build_teardown() {
return function (done) {
var self = this;
self.server.close(function () {
// console.log("server closed");
teardown.call(self, done);
teardown.call(self, function () {
self.server.close(function () {
done();
});
});
};
};