sologenic / sologenic-xrpl-stream-js

Persistent transaction handling for the XRP Ledger
MIT License
18 stars 11 forks source link

Testing updates and minor fixes to TX handler #9

Closed okanaganrusty closed 4 years ago

okanaganrusty commented 4 years ago

Updates for Sologenic Issue #2

pop(queue: string): Promise<MQTX | boolean>
del(queue: string, id: string): Promise<boolean>

Updated test cases for redis, hash and sologenictxhandler test cases to peform some basic testing. An example AcccountSet transaction is being sent to the XRPL with the hash and redis queues.

Updated sologenictxhandler.ts to check item.data!.txJSON instead of item.txJSON which was throwing an exception and causing test cases to fail.

$ export NODE_TLS_REJECT_UNAUTHORIZED=0
$ npm run watch
...

14 tests passed [20:28:57]

  Type `r` and press enter to rerun tests
  Type `u` and press enter to update snapshots