mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Exclude UNIXSocket tests under Windows
This commit is contained in:
parent
9470937da9
commit
af609a1f90
2 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
require "rbconfig"
|
||||
require 'test/unit'
|
||||
require 'rubygems'
|
||||
require 'socket'
|
||||
|
||||
require 'puma/cli'
|
||||
|
@ -19,7 +19,7 @@ class TestIntegration < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_stop_via_pumactl
|
||||
if defined? JRUBY_VERSION
|
||||
if defined?(JRUBY_VERSION) || RbConfig::CONFIG["host_os"] =~ /mingw|mswin/
|
||||
assert true
|
||||
return
|
||||
end
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
require "rbconfig"
|
||||
require 'test/unit'
|
||||
require 'puma/server'
|
||||
|
||||
require 'socket'
|
||||
|
||||
# UNIX sockets are not recommended on JRuby
|
||||
unless defined?(JRUBY_VERSION)
|
||||
# (or Windows)
|
||||
unless defined?(JRUBY_VERSION) || RbConfig::CONFIG["host_os"] =~ /mingw|mswin/
|
||||
class TestPumaUnixSocket < Test::Unit::TestCase
|
||||
|
||||
App = lambda { |env| [200, {}, ["Works"]] }
|
||||
|
|
Loading…
Reference in a new issue