Skip to content

Commit

Permalink
Merge pull request #478 from marcomoscasgr/fix/missing-schema-param-i…
Browse files Browse the repository at this point in the history
…n-inferred-id-run-test

Fix: missing schema param in inferred id run test
  • Loading branch information
kjsanger authored Nov 26, 2024
2 parents 3b15286 + 07b306c commit 0912308
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions t/lib/WTSI/NPG/HTS/Illumina/LogPublisherTest.pm
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,16 @@ sub publish_logs : Test(12) {
# test the RunPublisher
my $runfolder_path2 =
"t/data/illumina/sequence/150910_HS40_17550_A_C75BCANXX";

# The tracking database handle must be specified, otherwise when
# the tracking schema file exists in .npg folder it tries to retrieve
# the db credentials from it and connect to the database defined there.
# By setting it to 'undef', the code avoids the database route.
my $pub2 = WTSI::NPG::HTS::Illumina::LogPublisher->new
(irods => $irods,
runfolder_path => $runfolder_path2,
dest_collection => "$irods_tmp_coll/publish_logs_inferred_id_run");
(irods => $irods,
runfolder_path => $runfolder_path2,
npg_tracking_schema => undef,
dest_collection => "$irods_tmp_coll/publish_logs_inferred_id_run");

my $log_archive2 = $pub2->publish_logs;
ok($log_archive2, 'Log archive created given a runfolder path');
Expand Down

0 comments on commit 0912308

Please sign in to comment.