Update system tests for mocha and new ripple-lib transaction submission

This commit is contained in:
wltsmrz
2013-09-04 16:29:32 -07:00
committed by Vinnie Falco
parent 01d7d7bed9
commit c76e2b54a9
14 changed files with 3287 additions and 3168 deletions

View File

@@ -1,34 +1,19 @@
var buster = require("buster");
var assert = require('assert');
var extend = require("extend");
var Server = require("./server").Server;
var testutils = require("./testutils");
var config = testutils.init_config();
// How long to wait for server to start.
// var serverDelay = 1500;
var alpha;
buster.testCase("Standalone server startup", {
"server start and stop" : function (done) {
var cfg = extend({}, config.default_server_config,
config.servers.alpha);
alpha = Server.from_config("alpha", cfg);
alpha
.on('started', function () {
alpha
.on('stopped', function () {
buster.assert(true);
done();
})
.stop();
suite('Standalone server startup', function() {
test('server start and stop', function(done) {
var cfg = extend({}, config.default_server_config, config.servers.alpha);
var alpha = Server.from_config("alpha", cfg);
alpha.on('started', function () {
alpha.on('stopped', function () {
done();
})
.start();
}
alpha.stop();
})
alpha.start();
});
});
// vim:sw=2:sts=2:ts=8:et