lntest/itest: swap want/got channel constraints
Otherwise the fatal error message incorrectly describes what happpened.
This commit is contained in:
1 file changed
+2
-2
@@ -4930,7 +4930,7 @@ func testListChannels(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
MaxAcceptedHtlcs: input.MaxHTLCNumber / 2,
|
MaxAcceptedHtlcs: input.MaxHTLCNumber / 2,
|
||||||
}
|
}
|
||||||
assertChannelConstraintsEqual(
|
assertChannelConstraintsEqual(
|
||||||
t, aliceChannel.LocalConstraints, defaultConstraints,
|
t, defaultConstraints, aliceChannel.LocalConstraints,
|
||||||
)
|
)
|
||||||
|
|
||||||
// customizedConstraints is a ChannelConstraints with customized values.
|
// customizedConstraints is a ChannelConstraints with customized values.
|
||||||
@@ -4946,7 +4946,7 @@ func testListChannels(net *lntest.NetworkHarness, t *harnessTest) {
|
|||||||
MaxAcceptedHtlcs: input.MaxHTLCNumber / 2,
|
MaxAcceptedHtlcs: input.MaxHTLCNumber / 2,
|
||||||
}
|
}
|
||||||
assertChannelConstraintsEqual(
|
assertChannelConstraintsEqual(
|
||||||
t, aliceChannel.RemoteConstraints, customizedConstraints,
|
t, customizedConstraints, aliceChannel.RemoteConstraints,
|
||||||
)
|
)
|
||||||
|
|
||||||
// Get the ListChannel response for Bob.
|
// Get the ListChannel response for Bob.
|
||||||
|
|||||||
Reference in new issue
Block a user