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.
This commit is contained in:
Andrey Samokhvalov 2017-06-22 14:25:58 +03:00 committed by Olaoluwa Osuntokun
parent 9b9f419e51
commit c233b8816e

@ -425,7 +425,7 @@ func (n *threeHopNetwork) makePayment(sendingPeer, receivingPeer Peer,
select { select {
case err := <-errChan: case err := <-errChan:
return invoice, err 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") return invoice, errors.New("htlc was not settled in time")
} }
} }