651d8b
From 9b42fce32bff25e0569581f76f532b9d57865aef Mon Sep 17 00:00:00 2001
651d8b
From: =?UTF-8?q?V=C3=ADt=20Ondruch?= <vondruch@redhat.com>
651d8b
Date: Mon, 27 Jul 2020 14:56:05 +0200
651d8b
Subject: [PATCH] Timeout the test_bug_reporter_add witout raising error.
651d8b
651d8b
While timeouting the threads might be still good idea, it does not seems
651d8b
the timeout impacts the TestBugReporter#test_bug_reporter_add result,
651d8b
because the output of the child process has been already collected
651d8b
earlier.
651d8b
651d8b
It seems that when the system is under heavy load, the thread might not
651d8b
be sheduled to finish its processing. Even finishing the child process
651d8b
might take tens of seconds and therefore the test case finish might take
651d8b
a while.
651d8b
---
651d8b
 test/-ext-/bug_reporter/test_bug_reporter.rb | 2 +-
651d8b
 1 file changed, 1 insertion(+), 1 deletion(-)
651d8b
651d8b
diff --git a/test/-ext-/bug_reporter/test_bug_reporter.rb b/test/-ext-/bug_reporter/test_bug_reporter.rb
651d8b
index 628fcd0340..2c677cc8a7 100644
651d8b
--- a/test/-ext-/bug_reporter/test_bug_reporter.rb
651d8b
+++ b/test/-ext-/bug_reporter/test_bug_reporter.rb
651d8b
@@ -19,7 +19,7 @@ def test_bug_reporter_add
651d8b
     args = ["--disable-gems", "-r-test-/bug_reporter",
651d8b
             "-C", tmpdir]
651d8b
     stdin = "register_sample_bug_reporter(12345); Process.kill :SEGV, $$"
651d8b
-    assert_in_out_err(args, stdin, [], expected_stderr, encoding: "ASCII-8BIT")
651d8b
+    assert_in_out_err(args, stdin, [], expected_stderr, encoding: "ASCII-8BIT", timeout_error: nil)
651d8b
   ensure
651d8b
     FileUtils.rm_rf(tmpdir) if tmpdir
651d8b
   end
651d8b
-- 
651d8b
2.27.0
651d8b