removed file sorting heuristic so users can sort their own files
This commit is contained in:
parent
60842f10f9
commit
e06d9a2fab
|
@ -26,7 +26,6 @@ module Hydra #:nodoc:
|
|||
end
|
||||
@files = Array(opts.fetch('files') { nil })
|
||||
raise "No files, nothing to do" if @files.empty?
|
||||
@files.sort!{|a,b| File.size(b) <=> File.size(a)} # dumb heuristic
|
||||
@incomplete_files = @files.dup
|
||||
@workers = []
|
||||
@listeners = []
|
||||
|
|
|
@ -3,6 +3,8 @@ require File.join(File.dirname(__FILE__), 'test_helper')
|
|||
class MasterTest < Test::Unit::TestCase
|
||||
context "with a file to test and a destination to verify" do
|
||||
setup do
|
||||
# avoid having other tests interfering with us
|
||||
sleep(0.25)
|
||||
FileUtils.rm_f(target_file)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue