tests: cleanup of fundingmanager_test.go

This commit cleans the fundingManager tests by extracting
most of the common code from the different test cases into
assert methods, making the test cases easier to follow
and distinguish.

It also adds a new test for the case where the peer goes
offline, and the fundingManager must wait for it to come
online before it can send the fundingLocked message and
continue the funding flow.
This commit is contained in:
Johan T. Halseth 2017-09-25 00:03:07 +02:00
parent b8cadf881c
commit d981e12a3a
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26
1 changed files with 328 additions and 911 deletions

File diff suppressed because it is too large Load Diff