From 57a2c5d25fefad3ecbb224e619dda9cca849a298 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 13 Oct 2009 14:37:56 -0700 Subject: configurator: stop testing for non-portable listens IPv4 addresses in the format of: "^[[:digit:]]+:[[:digit:]]+$" isn't very portable.. --- test/unit/test_configurator.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test') 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 -- cgit v1.2.3-24-ge0c7