From 5b3170d5420a51a942099e32d455a7e1166ea563 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Mon, 8 Apr 2019 16:42:02 -0700 Subject: [PATCH] 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. --- lnd_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lnd_test.go b/lnd_test.go index 671a528e4..c5aad1442 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -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 // send payment between nodes. - ctx, cancel := context.WithCancel(ctxb) + ctx, cancel := context.WithTimeout(ctxb, lntest.AsyncBenchmarkTimeout) defer cancel() 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) } - ctx, cancel = context.WithCancel(ctxb) + ctx, cancel = context.WithTimeout(ctxb, lntest.AsyncBenchmarkTimeout) defer cancel() bobPayStream, err := net.Bob.SendPayment(ctx)