Skip to content

Commit

Permalink
Work around File::Find order. (cpantesters.org/cpan/report/a5e531d0-c…
Browse files Browse the repository at this point in the history
…328-11df-b760-aceb3ebc41c5)
  • Loading branch information
sanko committed Oct 26, 2010
1 parent fd3801a commit d4ea4e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Net/BitTorrent/Torrent/Generator.pm
Expand Up @@ -30,7 +30,7 @@ package Net::BitTorrent::Torrent::Generator;
},
$s->_files
);
\@files;
[sort @files];
},
_count_files => sub { scalar @{shift->files} },
total_size => sub {
Expand Down
3 changes: 2 additions & 1 deletion t/10000_by_class/Net/BitTorrent/Torrent/Generator.t
Expand Up @@ -44,7 +44,8 @@ package t::10000_by_class::Net::BitTorrent::Torrent::Generator;
'comment is correct';

sub _files {
['./t/90000_data/96000_data/96020_miniswarm_seed/1291672777_30adc6a421_o.jpg',
[sort
'./t/90000_data/96000_data/96020_miniswarm_seed/1291672777_30adc6a421_o.jpg',
'./t/90000_data/96000_data/96020_miniswarm_seed/2183742557_5c9a91727d_m.jpg',
'./t/90000_data/96000_data/96020_miniswarm_seed/credit.txt'
];
Expand Down

0 comments on commit d4ea4e9

Please sign in to comment.