From 9d6e9c73f1a182c61f1c9f95839da7cfd0cdf87a Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Sat, 11 Nov 2017 15:06:20 -0800 Subject: [PATCH] htlcswitch: modify TestChannelRetransmission to exit on first test failure --- htlcswitch/link_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/htlcswitch/link_test.go b/htlcswitch/link_test.go index 693ef680..1e1aa51d 100644 --- a/htlcswitch/link_test.go +++ b/htlcswitch/link_test.go @@ -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 + } } + }