mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-10-10 01:23:51 +02:00
htlcswitch: modify TestChannelRetransmission to exit on first test failure
This commit is contained in:
@@ -1994,8 +1994,13 @@ func TestChannelRetransmission(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, test := range retransmissionTests {
|
for _, test := range retransmissionTests {
|
||||||
t.Run(test.name, func(t *testing.T) {
|
passed := t.Run(test.name, func(t *testing.T) {
|
||||||
paymentWithRestart(t, test.messages)
|
paymentWithRestart(t, test.messages)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if !passed {
|
||||||
|
break
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user