From cf731fafab53a81fa17d72ba828a3a2f306ac92a Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Thu, 18 Aug 2022 17:56:01 +0200 Subject: [PATCH] Catch retry error in taildrop send --- integration_general_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration_general_test.go b/integration_general_test.go index d363ee26..9f2ca3ea 100644 --- a/integration_general_test.go +++ b/integration_general_test.go @@ -580,7 +580,7 @@ func (s *IntegrationTestSuite) TestTailDrop() { fmt.Sprintf("/tmp/file_from_%s", hostname), fmt.Sprintf("%s:", ip4), } - retry(10, 1*time.Second, func() error { + err := retry(10, 1*time.Second, func() error { log.Printf( "Sending file from %s to %s\n", hostname, @@ -594,6 +594,7 @@ func (s *IntegrationTestSuite) TestTailDrop() { ) return err }) + assert.Nil(t, err) }) }