From 6e2a09435e9e952e878241b13f4baac9215daf25 Mon Sep 17 00:00:00 2001 From: Daniel Leidert Date: Thu, 6 Feb 2020 11:24:24 +0100 Subject: [PATCH] Fix test to read output locale independent The test fails if run in a non-English environment. Gbp-Pq: Name 0013-fix-test-term-not-accepts-new-connections.patch --- test/test_integration_single.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_integration_single.rb b/test/test_integration_single.rb index fd930fe..521c5e8 100644 --- a/test/test_integration_single.rb +++ b/test/test_integration_single.rb @@ -76,7 +76,7 @@ class TestIntegrationSingle < TestIntegration true while @server.gets !~ /Gracefully stopping/ # wait for server to begin graceful shutdown # Invoke a request which must be rejected - _stdin, _stdout, rejected_curl_stderr, rejected_curl_wait_thread = Open3.popen3("curl #{HOST}:#{@tcp_port}") + _stdin, _stdout, rejected_curl_stderr, rejected_curl_wait_thread = Open3.popen3({ "LC_ALL" => "C" }, "curl http://#{HOST}:#{@tcp_port}") assert nil != Process.getpgid(@server.pid) # ensure server is still running assert nil != Process.getpgid(curl_wait_thread[:pid]) # ensure first curl invocation still in progress -- 2.30.2