Skip to content

Commit

Permalink
fix flappy remote test
Browse files Browse the repository at this point in the history
  • Loading branch information
cjfields committed Sep 8, 2017
1 parent 1e64ab3 commit d2a040f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions t/RemoteDB/Taxonomy.t
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,14 @@ for my $db ($db_entrez, $db_flatfile) {
is_deeply \@ids, [200795, 32061];

$id = $db->get_taxonids('Chloroflexi (class)');
$db eq $db_entrez ? is($id, undef) : is($id, 32061);
$db eq $db_entrez ? is($id, 'No hit') : is($id, 32061);

@ids = $db->get_taxonids('Rhodotorula');
cmp_ok @ids, '>=' , 2;
cmp_ok @ids, '>=' , 1;
if ($db eq $db_entrez) {
ok grep { $_ == 592558 } @ids;
diag(join(",", @ids));
# From NCBI: Taxid 592558 was merged into taxid 5533 on June 16, 2017
is( (grep { $_ == 592558 } @ids), 0, 'Value no longer found');
ok grep { $_ == 5533 } @ids;
} else {
# note the locally cached flatfile is out-of-date, but technically
Expand Down

0 comments on commit d2a040f

Please sign in to comment.