removed file sorting heuristic so users can sort their own files

This commit is contained in:
Nick Gauthier 2010-02-16 16:13:51 -05:00
parent 60842f10f9
commit e06d9a2fab
2 changed files with 2 additions and 1 deletions

View File

@ -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 = []

View File

@ -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