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