mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-11 06:35:51 +00:00
* Will use a running instance of rippled (possibly in a debugger). * Modify all tests to respect the server_default value. * Fail test if new account already exists and has a balance. * README.md with instructions for advanced test debugging, particularly using no_server.
21 lines
594 B
JavaScript
21 lines
594 B
JavaScript
var assert = require('assert');
|
|
var extend = require("extend");
|
|
var Server = require("./server").Server;
|
|
var testutils = require("./testutils");
|
|
var config = testutils.init_config();
|
|
|
|
suite('Standalone server startup', function() {
|
|
test('server start and stop', function(done) {
|
|
var host = config.server_default;
|
|
var cfg = testutils.get_server_config(config, host);
|
|
var alpha = Server.from_config(host, cfg);
|
|
alpha.on('started', function () {
|
|
alpha.on('stopped', function () {
|
|
done();
|
|
})
|
|
alpha.stop();
|
|
})
|
|
alpha.start();
|
|
});
|
|
});
|