lnd_test: apply AsyncBenchmarkTimeout to async_payments_benchmark
It was mistakenly only applied to async_bidirectional_payments, which can also see timeouts due to darwin fsync performance regression.
This commit is contained in:
parent
b089eb8c83
commit
5b3170d542
@ -9008,7 +9008,7 @@ func testBidirectionalAsyncPayments(net *lntest.NetworkHarness, t *harnessTest)
|
|||||||
|
|
||||||
// Open up a payment streams to Alice and to Bob, that we'll use to
|
// Open up a payment streams to Alice and to Bob, that we'll use to
|
||||||
// send payment between nodes.
|
// send payment between nodes.
|
||||||
ctx, cancel := context.WithCancel(ctxb)
|
ctx, cancel := context.WithTimeout(ctxb, lntest.AsyncBenchmarkTimeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
alicePayStream, err := net.Alice.SendPayment(ctx)
|
alicePayStream, err := net.Alice.SendPayment(ctx)
|
||||||
@ -9016,7 +9016,7 @@ func testBidirectionalAsyncPayments(net *lntest.NetworkHarness, t *harnessTest)
|
|||||||
t.Fatalf("unable to create payment stream for alice: %v", err)
|
t.Fatalf("unable to create payment stream for alice: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
ctx, cancel = context.WithCancel(ctxb)
|
ctx, cancel = context.WithTimeout(ctxb, lntest.AsyncBenchmarkTimeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
bobPayStream, err := net.Bob.SendPayment(ctx)
|
bobPayStream, err := net.Bob.SendPayment(ctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user