Page MenuHomePhabricator

[alias-server] Bring generateMocks script up to date with app
ClosedPublic

Authored by bytesofman on Jun 16 2023, 22:23.

Details

Summary

T3060

This script was not updated in line with the rest of the app, as mocks were not changed until the most recent spec was implemented.

Test Plan

npm run generateMocks (FYI takes about 30 seconds, as the tx history of the IFP address is quite large, ~130 MB. Note when the app is in prod, this only happens on startup with an empty db).

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emack requested changes to this revision.Jun 18 2023, 01:03
emack added a subscriber: emack.
emack added inline comments.
apps/alias-server/scripts/generateMocks.js
108 ↗(On Diff #40847)

if there was an issue connecting to the mongo server or writing to the testDb this Mocks successfully written... will still be logged. Can use a flag with a few try catch blocks in here.

image.png (216×325 px, 71 KB)

This revision now requires changes to proceed.Jun 18 2023, 01:03

Add try catch for failure conditions

This revision is now accepted and ready to land.Jun 19 2023, 22:58