Skip to content

Commit 20835ca

Browse files
GeorgeTsagkguggero
authored andcommitted
itest: make small manual rfq liquidity case fail faster
1 parent 63f4fca commit 20835ca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

itest/litd_custom_channels_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -2516,7 +2516,7 @@ func testCustomChannelsLiquidtyEdgeCasesCore(ctx context.Context,
25162516
// amount of 354 sats.
25172517
createAssetInvoice(
25182518
t.t, dave, charlie, 1, assetID, withInvoiceErrSubStr(
2519-
"1 asset units, as the minimal transportable amount",
2519+
"could not create any quotes for the invoice",
25202520
),
25212521
withInvGroupKey(groupID),
25222522
)
@@ -2686,7 +2686,7 @@ func testCustomChannelsLiquidtyEdgeCasesCore(ctx context.Context,
26862686
res, err := charlieTap.RfqClient.AddAssetBuyOrder(
26872687
ctx, &rfqrpc.AddAssetBuyOrderRequest{
26882688
AssetSpecifier: &assetSpecifier,
2689-
AssetMaxAmt: 10_000,
2689+
AssetMaxAmt: 1_000,
26902690
Expiry: uint64(inOneHour.Unix()),
26912691
PeerPubKey: dave.PubKey[:],
26922692
TimeoutSeconds: 10,
@@ -2702,7 +2702,7 @@ func testCustomChannelsLiquidtyEdgeCasesCore(ctx context.Context,
27022702
// manually generated, quote.
27032703
iResp, err := charlie.AddInvoice(ctx, &lnrpc.Invoice{
27042704
Memo: "",
2705-
Value: 200_000,
2705+
Value: 20_000,
27062706
RPreimage: bytes.Repeat([]byte{11}, 32),
27072707
CltvExpiry: 60,
27082708
RouteHints: []*lnrpc.RouteHint{{
@@ -2717,8 +2717,8 @@ func testCustomChannelsLiquidtyEdgeCasesCore(ctx context.Context,
27172717
// Now Erin tries to pay the invoice. Since rfq quote cannot satisfy the
27182718
// total amount of the invoice this payment will fail.
27192719
payInvoiceWithSatoshi(
2720-
t.t, erin, iResp, withPayErrSubStr("context deadline exceeded"),
2721-
withFailure(lnrpc.Payment_FAILED, failureNone),
2720+
t.t, erin, iResp,
2721+
withFailure(lnrpc.Payment_FAILED, failureNoRoute),
27222722
withGroupKey(groupID),
27232723
)
27242724

0 commit comments

Comments
 (0)