lntest/itest: swap want/got channel constraints

Otherwise the fatal error message incorrectly describes what happpened.
This commit is contained in:
Conner Fromknecht 2020-08-12 15:45:29 -07:00
parent 6c14c73b6b
commit 8a22e4fd1c
No known key found for this signature in database
GPG Key ID: E7D737B67FA592C7

View File

@ -4930,7 +4930,7 @@ func testListChannels(net *lntest.NetworkHarness, t *harnessTest) {
MaxAcceptedHtlcs: input.MaxHTLCNumber / 2,
}
assertChannelConstraintsEqual(
t, aliceChannel.LocalConstraints, defaultConstraints,
t, defaultConstraints, aliceChannel.LocalConstraints,
)
// customizedConstraints is a ChannelConstraints with customized values.
@ -4946,7 +4946,7 @@ func testListChannels(net *lntest.NetworkHarness, t *harnessTest) {
MaxAcceptedHtlcs: input.MaxHTLCNumber / 2,
}
assertChannelConstraintsEqual(
t, aliceChannel.RemoteConstraints, customizedConstraints,
t, customizedConstraints, aliceChannel.RemoteConstraints,
)
// Get the ListChannel response for Bob.