@@ -198,23 +198,24 @@ subtest 'get correct author release data format' => sub {
198198 is( $entry -> [0]-> {author }, ' OALDERS' , ' get correct author name' );
199199};
200200
201+ # # We are not doing retries as if API is loaded we do not want to retry
201202# do this last so the override_api_response only affects this
202- my $how_many = 0;
203- override_api_response(
204- if => sub { !$how_many ++ }, # fail only once
205- sub { Future-> fail(' Error' ); },
206- );
207- test_psgi app, sub {
208- my $cb = shift ;
209- subtest ' retry on transient failure' => sub {
210- ok( my $res = $cb -> ( GET ' /recent.rss' ) );
211- is( $res -> code, 200, ' code 200' );
212- is(
213- $res -> header(' content-type' ),
214- ' application/rss+xml; charset=UTF-8' ,
215- ' Content-type is application/rss+xml'
216- );
217- };
218- };
203+ # my $how_many = 0;
204+ # override_api_response(
205+ # if => sub { !$how_many++ }, # fail only once
206+ # sub { Future->fail('Error'); },
207+ # );
208+ # test_psgi app, sub {
209+ # my $cb = shift;
210+ # subtest 'retry on transient failure' => sub {
211+ # ok( my $res = $cb->( GET '/recent.rss' ) );
212+ # is( $res->code, 200, 'code 200' );
213+ # is(
214+ # $res->header('content-type'),
215+ # 'application/rss+xml; charset=UTF-8',
216+ # 'Content-type is application/rss+xml'
217+ # );
218+ # };
219+ # };
219220
220221done_testing;
0 commit comments