htlcswitch: modify TestChannelRetransmission to exit on first test failure

This commit is contained in:
Olaoluwa Osuntokun 2017-11-11 15:06:20 -08:00
parent 849abde253
commit 9d6e9c73f1
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -1994,8 +1994,13 @@ func TestChannelRetransmission(t *testing.T) {
}
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)
})
if !passed {
break
}
}
}