summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-02-09 18:19:16 +0100
committerJames Lopez <james@jameslopez.es>2016-02-09 18:19:16 +0100
commit3d2df984661269c1335752af8232e8b2248ce4d1 (patch)
tree2cf62dbfcdc330abfbafdf16932f34b645fc8ae9
parent82b3a4e8f70692ec679d880628fdb0f5844d42b9 (diff)
downloadgitlab-shell-3d2df984661269c1335752af8232e8b2248ce4d1.tar.gz
workaround for webrick issue on ruby 2.2
-rw-r--r--spec/httpunix_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/httpunix_spec.rb b/spec/httpunix_spec.rb
index cd2ede9..5f31f6e 100644
--- a/spec/httpunix_spec.rb
+++ b/spec/httpunix_spec.rb
@@ -24,6 +24,11 @@ class HTTPUNIXServer < WEBrick::HTTPServer
socket.close
@listeners << server
end
+
+ def start(&block)
+ setup_shutdown_pipe
+ super.start(&block)
+ end
end
def tmp_socket_path