Remove waiting in "create_file" and "touch_file".
It should only be needed *before* "cmd".
This commit is contained in:
parent
e722de3e84
commit
107f6557db
@ -92,7 +92,7 @@ module Cmdtest
|
|||||||
# time of the call.
|
# time of the call.
|
||||||
|
|
||||||
def create_file(filename, lines)
|
def create_file(filename, lines)
|
||||||
Util.wait_for_new_second
|
#Util.wait_for_new_second
|
||||||
FileUtils.mkdir_p( File.dirname(filename) )
|
FileUtils.mkdir_p( File.dirname(filename) )
|
||||||
File.open(filename, "w") do |f|
|
File.open(filename, "w") do |f|
|
||||||
case lines
|
case lines
|
||||||
@ -110,7 +110,7 @@ module Cmdtest
|
|||||||
# time of the call.
|
# time of the call.
|
||||||
|
|
||||||
def touch_file(filename)
|
def touch_file(filename)
|
||||||
Util.wait_for_new_second
|
#Util.wait_for_new_second
|
||||||
FileUtils.touch(filename)
|
FileUtils.touch(filename)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user