-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
channeldb: Fix payment serialization tests.
This modifies the tests that deal serializing the Invoice type to limit the creation date to seconds since Go1.9 added the concept of a monotonic component to times which does not round trip through MarshalBinary and UnmarshalBinary and therefore causes the tests to fail. In particular, it modifies the creation dates in the randInvoice, makeFakePayment, makeRandomFakePayment, and TestInvoiceWorkflow functions. This results in allowing TestOutgoingPaymentSerialization, TestOutgoingPaymentWorkflow, and TestInvoiceWorkflow to pass.
- Loading branch information
Showing
2 changed files
with
12 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters