File: 0006-update-wait-for-message.patch

package info (click to toggle)
ruby-excon 1.3.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,268 kB
  • sloc: ruby: 7,974; makefile: 5
file content (30 lines) | stat: -rw-r--r-- 1,256 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Description: update wait_for_message value to match latest rackup/webrick
Author: geemus <geemus@gmail.com>
Origin: upstream
Applied-Upstream: 51519ee2ebaa3ecf84cec03cf5e85f86407b445c
Reviewed-by: Simon Quigley <tsimonq2@debian.org>
Last-Update: 2026-02-24
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/lib/excon/test/plugin/server/webrick.rb
+++ b/lib/excon/test/plugin/server/webrick.rb
@@ -10,7 +10,7 @@ module Excon
             open_process(RbConfig.ruby, '-S', 'rackup', '-s', 'webrick', '--host', host, '--port', port, app_str)
             process_stderr = ""
             line = ''
-            until line.include?('HTTPServer#start')
+            until line.include?('Rackup::Handler::WEBrick::Server#start')
               line = error.gets
               raise process_stderr if line.nil?
               process_stderr << line
--- a/tests/test_helper.rb
+++ b/tests/test_helper.rb
@@ -353,7 +353,7 @@ end
 
 def with_rackup(name, host="127.0.0.1")
   pid, w, r, e = launch_process(RbConfig.ruby, "-S", "rackup", "-s", "webrick", "--host", host, rackup_path(name))
-  wait_for_message(e, 'HTTPServer#start:')
+  wait_for_message(e, 'Rackup::Handler::WEBrick::Server#start')
   yield
 ensure
   cleanup_process(pid)