HomePhabricator

[alias-server] Implement mock mongo db and test it

Description

[alias-server] Implement mock mongo db and test it

Summary:
T3060

Depends on D13634

Get initial config correct for using an in-memory mongodb instance for later unit tests.

Note: Future diffs will introduce more sophisticated tests, even for initializeDb, this is a stub.

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13644

Details

Provenance
bytesofmanAuthored on Apr 8 2023, 23:14
bytesofmanPushed on Apr 12 2023, 14:20
Reviewer
Restricted Project
Differential Revision
D13644: [alias-server] Implement mock mongo db and test it
Parents
rABCc0a66d183fd1: [alias-server] Check avalanche isFinalBlock in handleBlockConnected
Branches
Unknown
Tags
Unknown