diff options
author | James Lopez <james@jameslopez.es> | 2016-02-09 18:19:16 +0100 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-02-09 18:19:16 +0100 |
commit | 3d2df984661269c1335752af8232e8b2248ce4d1 (patch) | |
tree | 2cf62dbfcdc330abfbafdf16932f34b645fc8ae9 | |
parent | 82b3a4e8f70692ec679d880628fdb0f5844d42b9 (diff) | |
download | gitlab-shell-3d2df984661269c1335752af8232e8b2248ce4d1.tar.gz |
workaround for webrick issue on ruby 2.2
-rw-r--r-- | spec/httpunix_spec.rb | 5 |
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 |