From d2a040f70d20389cf03f05d719a061447dfbe203 Mon Sep 17 00:00:00 2001 From: Chris Fields Date: Fri, 8 Sep 2017 16:47:29 -0500 Subject: [PATCH] fix flappy remote test --- t/RemoteDB/Taxonomy.t | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/t/RemoteDB/Taxonomy.t b/t/RemoteDB/Taxonomy.t index 594a0e8e8..306c99d12 100644 --- a/t/RemoteDB/Taxonomy.t +++ b/t/RemoteDB/Taxonomy.t @@ -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 -- 2.11.4.GIT