@@ -89,7 +89,14 @@ func testSendPaymentAMPInvoiceCase(ht *lntest.HarnessTest,
8989 // Increase Dave's fee to make the test deterministic. Otherwise it
9090 // would be unpredictable whether pathfinding would go through Charlie
9191 // or Dave for the first shard.
92- expectedPolicy := mts .updateDaveGlobalPolicy ()
92+ expectedPolicy := & lnrpc.RoutingPolicy {
93+ FeeBaseMsat : 500_000 ,
94+ FeeRateMilliMsat : int64 (0.001 * 1_000_000 ),
95+ TimeLockDelta : 40 ,
96+ MinHtlc : 1000 , // default value
97+ MaxHtlcMsat : 133_650_000 ,
98+ }
99+ mts .dave .UpdateGlobalPolicy (expectedPolicy )
93100
94101 // Make sure Alice has heard it for both Dave's channels.
95102 ht .AssertChannelPolicyUpdate (
@@ -382,10 +389,17 @@ func testSendPaymentAMP(ht *lntest.HarnessTest) {
382389 mts .openChannels (mppReq )
383390 chanPointAliceDave := mts .channelPoints [1 ]
384391
385- // Increase Dave's fee to make the test deterministic. Otherwise it
392+ // Increase Dave's fee to make the test deterministic. Otherwise, it
386393 // would be unpredictable whether pathfinding would go through Charlie
387394 // or Dave for the first shard.
388- expectedPolicy := mts .updateDaveGlobalPolicy ()
395+ expectedPolicy := & lnrpc.RoutingPolicy {
396+ FeeBaseMsat : 500_000 ,
397+ FeeRateMilliMsat : int64 (0.001 * 1_000_000 ),
398+ TimeLockDelta : 40 ,
399+ MinHtlc : 1000 , // default value
400+ MaxHtlcMsat : 133_650_000 ,
401+ }
402+ mts .dave .UpdateGlobalPolicy (expectedPolicy )
389403
390404 // Make sure Alice has heard it.
391405 ht .AssertChannelPolicyUpdate (
@@ -493,7 +507,7 @@ func testSendToRouteAMP(ht *lntest.HarnessTest) {
493507 // Alice -- Carol ---- Bob
494508 // \ /
495509 // \__ Dave ____/
496- ///
510+ //
497511 mppReq := & mppOpenChannelRequest {
498512 // Since the channel Alice-> Carol will have to carry two
499513 // shards, we make it larger.
0 commit comments