graph/db: fix error check in test
An error in TestChanUpdatesInHorizon was previously not checked correctly.
This commit is contained in:
1 file changed
+7
-8
@@ -2069,16 +2069,15 @@ func TestChanUpdatesInHorizon(t *testing.T) {
|
|||||||
|
|
||||||
assertEdgeInfoEqual(t, chanExp.Info, chanRet.Info)
|
assertEdgeInfoEqual(t, chanExp.Info, chanRet.Info)
|
||||||
|
|
||||||
err := compareEdgePolicies(
|
err = compareEdgePolicies(
|
||||||
chanExp.Policy1, chanRet.Policy1,
|
chanExp.Policy1, chanRet.Policy1,
|
||||||
)
|
)
|
||||||
if err != nil {
|
require.NoError(t, err)
|
||||||
t.Fatal(err)
|
|
||||||
}
|
err = compareEdgePolicies(
|
||||||
compareEdgePolicies(chanExp.Policy2, chanRet.Policy2)
|
chanExp.Policy2, chanRet.Policy2,
|
||||||
if err != nil {
|
)
|
||||||
t.Fatal(err)
|
require.NoError(t, err)
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user