]> git.bitcoin.ninja Git - rust-lightning/commit
Simplify BlockNotifier tests
authorJeffrey Czyz <jkczyz@gmail.com>
Tue, 16 Jun 2020 22:24:22 +0000 (15:24 -0700)
committerJeffrey Czyz <jkczyz@gmail.com>
Tue, 4 Aug 2020 23:39:35 +0000 (16:39 -0700)
commit49d92193dc378a9876865c700d09ce60194be61f
tree3b1788ec90ae85cb938c9e43169f9b9312e83d3a
parentc61b9202b6a4f51dec4146a4babb18925e4debd9
Simplify BlockNotifier tests

Use a simple ChainListner implementation rather than large test objects
for testing BlockNotifier.

Remove unregister_single_listener_ref_test since it is redundant with
unregister_single_listener_test.

Remove unnecessary clone() calls.
lightning/src/chain/chaininterface.rs