htlcswitch: modify TestChannelRetransmission to exit on first test failure

This commit is contained in:
Olaoluwa Osuntokun committed 2017-11-11 15:06:25 -08:00
1 parent 849abde253
commit 9d6e9c73f1
1 file changed
+6 -1
+6 -1
View File
@@ -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
}
}
}