about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-13 14:37:56 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-13 14:37:56 -0700
commit57a2c5d25fefad3ecbb224e619dda9cca849a298 (patch)
tree418d9ddbdff8944aed94a50e61f9c394e2dec6eb
parent5aca54809cc1acd61d9078adc34c4e02e60447d4 (diff)
downloadunicorn-57a2c5d25fefad3ecbb224e619dda9cca849a298.tar.gz
IPv4 addresses in the format of: "^[[:digit:]]+:[[:digit:]]+$"
isn't very portable..
-rw-r--r--test/unit/test_configurator.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/test_configurator.rb b/test/unit/test_configurator.rb
index caa985e..ac1efa8 100644
--- a/test/unit/test_configurator.rb
+++ b/test/unit/test_configurator.rb
@@ -32,8 +32,10 @@ class TestConfigurator < Test::Unit::TestCase
     assert_equal "0.0.0.0:2007", meth.call('*:2007')
     assert_equal "0.0.0.0:2007", meth.call('2007')
     assert_equal "0.0.0.0:2007", meth.call(2007)
-    assert_match %r{\A\d+\.\d+\.\d+\.\d+:2007\z}, meth.call('1:2007')
-    assert_match %r{\A\d+\.\d+\.\d+\.\d+:2007\z}, meth.call('2:2007')
+
+    # the next two aren't portable, consider them unsupported for now
+    # assert_match %r{\A\d+\.\d+\.\d+\.\d+:2007\z}, meth.call('1:2007')
+    # assert_match %r{\A\d+\.\d+\.\d+\.\d+:2007\z}, meth.call('2:2007')
   end
 
   def test_config_invalid