Skip to content

Commit

Permalink
regression tests working
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed Jan 8, 2013
1 parent 82caee5 commit 74c5c16
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Bio/Graphics/Browser2/Render/Slave/AWS_Balancer.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package Bio::Graphics::Browser2::Render::Slave::AWS_Balancer;

use strict;
use Parse::Apache::ServerStatus;
use VM::EC2 1.21;
use VM::EC2 1.22;
use VM::EC2::Instance::Metadata;
use VM::EC2::Staging::Manager;
use LWP::Simple 'get','head';
Expand Down
3 changes: 2 additions & 1 deletion t/00.compile.t
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ sub skip_file {
gbrowse_attach_slaves.pl
make_das_conf.pl
gbrowse_slave_start_aws.sh
gbrowse_launch_aws_slaves.pl
gbrowse_aws_balancer.pl
gbrowse_sync_aws_slave.pl
);

return $skip{ basename($file) };
Expand Down
3 changes: 3 additions & 0 deletions t/07.balancer.t
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ BEGIN {
use lib "$Bin/../lib";
if (!eval {require Parse::Apache::ServerStatus;1}) {
plan skip_all => 'Optional module Parse::Apache::ServerStatus not installed';
} elsif (!eval "use VM::EC2 1.22; 1") {
plan skip_all => 'Optional module VM::EC2 (v1.22 or higher) not installed';
} else {
plan tests => TESTS;
}
Expand All @@ -23,6 +25,7 @@ BEGIN {

my $b = Bio::Graphics::Browser2::Render::Slave::AWS_Balancer->new(-conf=>CONF_FILE);
$b or BAIL_OUT("Couldn't create balancer");
$b->verbosity(0);
my $instance = $b->running_as_instance;

is_deeply([$b->slaves_wanted(0.1)],[0,1],'load table test 1');
Expand Down

0 comments on commit 74c5c16

Please sign in to comment.