Page MenuHomePhabricator

[alias-server] Unit tests for main.js
ClosedPublic

Authored by bytesofman on Apr 8 2023, 23:21.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC4d6340865088: [alias-server] Unit tests for main.js
Summary

T3060

Depends on D13644

Add unit tests for main

Patch bug found by introduction of test to correctly pass address param

Test Plan

npm test
node index.js`, app starts up, waits 10s, gives block height and hash of avalanche final block

Diff Detail

Repository
rABC Bitcoin ABC
Branch
implement-better-mocked-chronik-alias-server
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 23126
Build 45872: Build Diffalias-server-tests
Build 45871: arc lint + arc unit

Event Timeline

bytesofman retitled this revision from [alias-server] Patch bug to correctly pass address param to [alias-server] Unit tests for main.js.Apr 8 2023, 23:44
bytesofman edited the summary of this revision. (Show Details)
Fabien requested changes to this revision.Apr 9 2023, 09:26
Fabien added a subscriber: Fabien.

Patch bug found by introduction of test to correctly pass address param

Where is that bug ? If the culprit is not landed already you should avoid introducing it rather than fixing it.

This revision now requires changes to proceed.Apr 9 2023, 09:26

Patch bug found by introduction of test to correctly pass address param

Where is that bug ? If the culprit is not landed already you should avoid introducing it rather than fixing it.

Was introduced before this stack. address is needed as a param to pass to initializeWebsocket

This was done properly in the unit tests. But was omitted in index.js, which called the function incorrectly.

This revision is now accepted and ready to land.Apr 10 2023, 19:12

rebase, carrying through unit test change

This revision was automatically updated to reflect the committed changes.