test: adds integration tests for rippled utility methods (#1597)

* add utility tests

* type client better

* simplify ledgerAccept
This commit is contained in:
Mayukha Vadari
2021-09-13 18:09:33 -04:00
parent b9b32eb3d2
commit fcc8977623
3 changed files with 51 additions and 12 deletions

View File

@@ -11,7 +11,7 @@ export async function suiteClientSetup(this: Mocha.Context): Promise<void> {
this.transactions = []
await setupClient.bind(this)(serverUrl)
ledgerAccept(this.client)
await ledgerAccept(this.client)
this.newWallet = generateXAddress({ includeClassicAddress: true })
// two times to give time to server to send `ledgerClosed` event
// so getLedgerVersion will return right value