Page MenuHomePhabricator

[chronik mock] Make sure history function is async so Promise.all() tests work
ClosedPublic

Authored by bytesofman on Apr 14 2023, 22:40.

Details

Summary

Discovered this bug in creating D13707

The chronik function to get one page of tx history is async. For efficiency, getting multiple pages is usually done with Promise.all(). This will only work on an array of promises, which need to be async functions.

Test Plan

See passing unit tests in D13707
Check unit tests for alias-server and ecash-herald here

Diff Detail

Repository
rABC Bitcoin ABC
Branch
mock-chronik-patch
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23331
Build 46281: Build Diffecash-herald-tests · alias-server-tests
Build 46280: arc lint + arc unit