mirror of
https://github.com/aljazceru/breez-lnd.git
synced 2025-12-17 06:04:20 +01:00
htlcswitch: remove 5 second timeout for data race unit tests
This commit is contained in:
@@ -3449,17 +3449,12 @@ func TestSwitchDustForwarding(t *testing.T) {
|
||||
)
|
||||
require.NoError(t, err)
|
||||
|
||||
select {
|
||||
case result, ok := <-carolResultChan:
|
||||
result, ok := <-carolResultChan
|
||||
require.True(t, ok)
|
||||
assertFailureCode(
|
||||
t, result.Error, lnwire.CodeTemporaryChannelFailure,
|
||||
)
|
||||
|
||||
case <-time.After(5 * time.Second):
|
||||
t.Fatal("no result arrived for carol's dust htlc")
|
||||
}
|
||||
|
||||
// Send an HTLC from Alice to Carol and assert that it is failed at the
|
||||
// call to SendHTLC.
|
||||
htlcAmt, totalTimelock, aliceHops := generateHops(
|
||||
|
||||
Reference in New Issue
Block a user