Skip to content

Commit

Permalink
Made the test-suite run a lot faster
Browse files Browse the repository at this point in the history
  • Loading branch information
muffato committed Dec 22, 2016
1 parent 45b71a0 commit 9927b58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions t/10.pipeconfig/client_server_wf.t
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ my $client_url = get_test_url_or_die(-tag => 'client');
init_pipeline('Bio::EnsEMBL::Hive::Examples::LongMult::PipeConfig::LongMultWfServer_conf', $server_url, [], ['pipeline.param[take_time]=0']);
init_pipeline('Bio::EnsEMBL::Hive::Examples::LongMult::PipeConfig::LongMultWfClient_conf', $client_url, [-server_url => $server_url], ['pipeline.param[take_time]=0']);

my @server_beekeeper_cmd = ($ENV{'EHIVE_ROOT_DIR'}.'/scripts/beekeeper.pl', -url => $server_url, -sleep => 0.1, '-keep_alive', '-local'); # needs to be killed
my @client_beekeeper_cmd = (-sleep => 0.1, '-loop', '-local'); # will exit when the pipeline is over
my @server_beekeeper_cmd = ($ENV{'EHIVE_ROOT_DIR'}.'/scripts/beekeeper.pl', -url => $server_url, -sleep => 0.02, '-keep_alive', '-local'); # needs to be killed
my @client_beekeeper_cmd = (-sleep => 0.02, '-loop', '-local'); # will exit when the pipeline is over

if(my $server_pid = fork) {
beekeeper($client_url, \@client_beekeeper_cmd );
Expand Down
2 changes: 1 addition & 1 deletion t/10.pipeconfig/longmult.t
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ foreach my $long_mult_version ( @pipeline_cfgs ) {
seed_pipeline($pipeline_url, 'take_b_apart', '{"a_multiplier" => 2222222222, "b_multiplier" => 3434343434}');
is(scalar(@{$job_adaptor->fetch_all("status != 'DONE'")}), 1, 'There are new jobs to run');

beekeeper($pipeline_url, [-sleep => 0.1, '-loop', '-local']);
beekeeper($pipeline_url, [-sleep => 0.02, '-loop', '-local']);
is(scalar(@{$job_adaptor->fetch_all("status != 'DONE'")}), 0, 'All the jobs could be run');

my $final_result_nta = $hive_dba->get_NakedTableAdaptor( 'table_name' => 'final_result' );
Expand Down

0 comments on commit 9927b58

Please sign in to comment.