From c233b8816e13435590adc2e41f945510a2825679 Mon Sep 17 00:00:00 2001 From: Andrey Samokhvalov Date: Thu, 22 Jun 2017 14:25:58 +0300 Subject: [PATCH] htlcswitch: increase payment timeout in bydirectional unit test During travis tests the latency of payment might lead to test failure, for that reason we increase the waiting timeout. --- htlcswitch/test_utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htlcswitch/test_utils.go b/htlcswitch/test_utils.go index 0b576410..bffd51a1 100644 --- a/htlcswitch/test_utils.go +++ b/htlcswitch/test_utils.go @@ -425,7 +425,7 @@ func (n *threeHopNetwork) makePayment(sendingPeer, receivingPeer Peer, select { case err := <-errChan: return invoice, err - case <-time.After(12 * time.Second): + case <-time.After(20 * time.Second): return invoice, errors.New("htlc was not settled in time") } }