Improve remote.js and test starts.

- Transactions now emit 'pending' and 'lost'
- Remote now supports once().
- Tests now use 'ledger_closed' to know when to start.
- Fix quick close of remote.
This commit is contained in:
Arthur Britto
2012-10-17 18:15:04 -07:00
parent d7ccf1f7a6
commit bacfcff48c
3 changed files with 143 additions and 18 deletions

View File

@@ -24,7 +24,7 @@ buster.testCase("Remote functions", {
alpha = remote.remoteConfig(config, "alpha");
alpha
.on('connected', done)
.once('ledger_closed', done)
.connect();
});
},