htlcswitch: remove 5 second timeout for data race unit tests

This commit is contained in:
eugene committed 2021-10-26 10:32:13 -04:00
1 parent 6450f0c080
commit ee2162b5d2
1 file changed
+1 -6
+1 -6
View File
@@ -3449,17 +3449,12 @@ func TestSwitchDustForwarding(t *testing.T) {
) )
require.NoError(t, err) require.NoError(t, err)
select { result, ok := <-carolResultChan
case result, ok := <-carolResultChan:
require.True(t, ok) require.True(t, ok)
assertFailureCode( assertFailureCode(
t, result.Error, lnwire.CodeTemporaryChannelFailure, 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 // Send an HTLC from Alice to Carol and assert that it is failed at the
// call to SendHTLC. // call to SendHTLC.
htlcAmt, totalTimelock, aliceHops := generateHops( htlcAmt, totalTimelock, aliceHops := generateHops(