From 7ae76865b3707fc4091eb485ff4a9b3993bd51ff Mon Sep 17 00:00:00 2001 From: Daniel Pepper Date: Tue, 21 Nov 2023 08:09:00 -0800 Subject: [PATCH] . --- spec/support/mock_server.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/support/mock_server.rb b/spec/support/mock_server.rb index 46493d0..b9f3e27 100644 --- a/spec/support/mock_server.rb +++ b/spec/support/mock_server.rb @@ -16,6 +16,8 @@ def mock_server(host, *args) # puts "client: #{line}" end + sleep $1.to_f if path =~ %r{/timeout/(\d+)} + resp = "OK" headers = [ "http/1.1 200 ok",