mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-19 18:45:52 +00:00
Support a "no_server" flag in test config.
* 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.
This commit is contained in:
committed by
Nik Bougalis
parent
7f5f73887d
commit
a5df3f1747
@@ -6,8 +6,9 @@ var config = testutils.init_config();
|
||||
|
||||
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);
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user