From 8a22e4fd1ce60be31a06d900bacd4797ff99f00d Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Wed, 12 Aug 2020 15:45:29 -0700 Subject: [PATCH] lntest/itest: swap want/got channel constraints Otherwise the fatal error message incorrectly describes what happpened. --- lntest/itest/lnd_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lntest/itest/lnd_test.go b/lntest/itest/lnd_test.go index 9be907f9..6440ea61 100644 --- a/lntest/itest/lnd_test.go +++ b/lntest/itest/lnd_test.go @@ -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.