From d5083a92c62fdf25c1a93c904b8292e7ae34b16d Mon Sep 17 00:00:00 2001 From: Kamil Bukum Date: Tue, 17 Dec 2024 16:52:04 -0800 Subject: [PATCH] check the if the data is not empty then reset the timeout --- common/lib/dependabot/command_helpers.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/lib/dependabot/command_helpers.rb b/common/lib/dependabot/command_helpers.rb index ecb5d71cdc..f10aeff67b 100644 --- a/common/lib/dependabot/command_helpers.rb +++ b/common/lib/dependabot/command_helpers.rb @@ -133,7 +133,9 @@ def self.capture3_with_timeout( data = data.encode("UTF-8", invalid: :replace, undef: :replace, replace: "?") # Reset the timeout if data is received - last_output_time = Time.now if data + last_output_time = Time.now unless data.empty? + + # 4. Append data to the appropriate stream if io == stdout_io stdout += data else