1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

revert r60999

* test/logger/test_logdevice.rb: revert r60999 because it was caused by not
  committed changes.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2017-12-04 00:23:31 +00:00
parent 7a936a6362
commit 58b3f36546

View file

@ -270,19 +270,16 @@ class TestLogDevice < Test::Unit::TestCase
assert_file.not_exist?(filename1)
assert_file.not_exist?(filename2)
assert_file.not_exist?(filename3)
sleep 0.01
logger.info("0" * 15)
assert_file.exist?(@filename)
assert_file.exist?(filename1)
assert_file.not_exist?(filename2)
assert_file.not_exist?(filename3)
sleep 0.01
logger.warn("0" * 15)
assert_file.exist?(@filename)
assert_file.exist?(filename1)
assert_file.exist?(filename2)
assert_file.not_exist?(filename3)
sleep 0.01
logger.error("0" * 15)
assert_file.exist?(@filename)
assert_file.exist?(filename1)
@ -309,11 +306,8 @@ class TestLogDevice < Test::Unit::TestCase
filename1 = @filename + ".#{yyyymmdd}"
filename2 = @filename + ".#{yyyymmdd}.1"
filename3 = @filename + ".#{yyyymmdd}.2"
sleep 0.01
logger.info("0" * 15)
sleep 0.01
logger.info("0" * 15)
sleep 0.01
logger.info("0" * 15)
assert_file.exist?(@filename)
assert_file.exist?(filename1)