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

View File

@ -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")
}
}