Skip to content

Commit 5e505e2

Browse files
committed
itest: make small manual rfq liquidity case fail faster
1 parent 1d8242b commit 5e505e2

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
@@ -2897,7 +2897,7 @@ func testCustomChannelsLiquidtyEdgeCasesCore(ctx context.Context,
28972897
// amount of 354 sats.
28982898
createAssetInvoice(
28992899
t.t, dave, charlie, 1, assetID, withInvoiceErrSubStr(
2900-
"1 asset units, as the minimal transportable amount",
2900+
"could not create any quotes for the invoice",
29012901
),
29022902
withInvGroupKey(groupID),
29032903
)
@@ -3067,7 +3067,7 @@ func testCustomChannelsLiquidtyEdgeCasesCore(ctx context.Context,
30673067
res, err := charlieTap.RfqClient.AddAssetBuyOrder(
30683068
ctx, &rfqrpc.AddAssetBuyOrderRequest{
30693069
AssetSpecifier: &assetSpecifier,
3070-
AssetMaxAmt: 10_000,
3070+
AssetMaxAmt: 1_000,
30713071
Expiry: uint64(inOneHour.Unix()),
30723072
PeerPubKey: dave.PubKey[:],
30733073
TimeoutSeconds: 10,
@@ -3083,7 +3083,7 @@ func testCustomChannelsLiquidtyEdgeCasesCore(ctx context.Context,
30833083
// manually generated, quote.
30843084
iResp, err := charlie.AddInvoice(ctx, &lnrpc.Invoice{
30853085
Memo: "",
3086-
Value: 200_000,
3086+
Value: 20_000,
30873087
RPreimage: bytes.Repeat([]byte{11}, 32),
30883088
CltvExpiry: 60,
30893089
RouteHints: []*lnrpc.RouteHint{{
@@ -3098,8 +3098,8 @@ func testCustomChannelsLiquidtyEdgeCasesCore(ctx context.Context,
30983098
// Now Erin tries to pay the invoice. Since rfq quote cannot satisfy the
30993099
// total amount of the invoice this payment will fail.
31003100
payInvoiceWithSatoshi(
3101-
t.t, erin, iResp, withPayErrSubStr("context deadline exceeded"),
3102-
withFailure(lnrpc.Payment_FAILED, failureNone),
3101+
t.t, erin, iResp,
3102+
withFailure(lnrpc.Payment_FAILED, failureNoRoute),
31033103
withGroupKey(groupID),
31043104
)
31053105

0 commit comments

Comments
 (0)