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:
Edward Hennis
2014-12-23 20:44:36 -05:00
committed by Nik Bougalis
parent 7f5f73887d
commit a5df3f1747
6 changed files with 157 additions and 27 deletions

View File

@@ -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();