Page MenuHomePhabricator

[Cashtab] Replace obsolete log statement in unit test
ClosedPublic

Authored by bytesofman on Oct 2 2023, 16:07.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC3149596d668f: [Cashtab] Replace obsolete log statement in unit test
Summary

Use a different error msg for a failed tx broadcast

Depends on D14574

Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
send-xec-improvements
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25229
Build 50046: Build Diffcashtab-tests
Build 50045: arc lint + arc unit

Event Timeline

Fabien requested changes to this revision.Oct 3 2023, 06:43
Fabien added a subscriber: Fabien.

Why is this change not causing a test failure ?

This revision now requires changes to proceed.Oct 3 2023, 06:43

Why is this change not causing a test failure ?

The unit test in this case is showing that the function throws an error on const response = await chronik.broadcastTx(hex); if this chronik server returns an error. So, it's throwing whatever is supplied to the mock. The msg itself is not relevant.

This revision is now accepted and ready to land.Oct 3 2023, 15:38