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
|
end
|
||||||
@files = Array(opts.fetch('files') { nil })
|
@files = Array(opts.fetch('files') { nil })
|
||||||
raise "No files, nothing to do" if @files.empty?
|
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
|
@incomplete_files = @files.dup
|
||||||
@workers = []
|
@workers = []
|
||||||
@listeners = []
|
@listeners = []
|
||||||
|
@ -3,6 +3,8 @@ require File.join(File.dirname(__FILE__), 'test_helper')
|
|||||||
class MasterTest < Test::Unit::TestCase
|
class MasterTest < Test::Unit::TestCase
|
||||||
context "with a file to test and a destination to verify" do
|
context "with a file to test and a destination to verify" do
|
||||||
setup do
|
setup do
|
||||||
|
# avoid having other tests interfering with us
|
||||||
|
sleep(0.25)
|
||||||
FileUtils.rm_f(target_file)
|
FileUtils.rm_f(target_file)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user