From e6f8aae75709a2c718485077bd41012946179c1e Mon Sep 17 00:00:00 2001 From: cjfields Date: Fri, 16 Jan 2009 17:09:50 +0000 Subject: [PATCH] Carry over test change from main trunk svn path=/bioperl-live/branches/branch-1-6/; revision=15385 --- t/RemoteDB/HIV/HIV.t | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/t/RemoteDB/HIV/HIV.t b/t/RemoteDB/HIV/HIV.t index abcc4a3fc..90c515157 100755 --- a/t/RemoteDB/HIV/HIV.t +++ b/t/RemoteDB/HIV/HIV.t @@ -75,11 +75,18 @@ SKIP: { lives_ok { $seqio = $tobj->get_Stream_by_id(['17756']) } 'get HXB2 in a stream'; if ($@) { skip("Network problems, skipping all tests", 8) - } - lives_ok { $seqio = $tobj->get_Stream_by_acc(['K03455']) } 'get HXB2 in a stream by accession'; + } + + # this test seems to fail ~50% of the time (server-side issue), so we tread + # lightly with an eval and pass regardless, but indicate the problem and + # skip the rest + eval { $seqio = $tobj->get_Stream_by_acc(['K03455']) }; if ($@) { + ok(1, "Server-side request problem, bypassing..."); skip("Network problems, skipping all tests", 7) - } + } else { + ok(1, 'get HXB2 in a stream by accession'); + } $hxb2 = $seqio->next_seq; is($hxb2->primary_id, 'K03455', 'checking returned stream'); is($hxb2->alphabet,'dna', 'checking returned stream'); -- 2.11.4.GIT