فهرست منبع

Handle bizarre 302s from CPANtesters

remove 520 (it's in coverage matrix) from travisyml
George S. Baugh 10 سال پیش
والد
کامیت
ec337dd57d
2فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 0 1
      .travis.yml
  2. 1 1
      t/TestRail-API.t

+ 0 - 1
.travis.yml

@@ -1,6 +1,5 @@
 language: perl
 perl:
-   - '5.20'
    - '5.18'
    - '5.16'
    - '5.14'

+ 1 - 1
t/TestRail-API.t

@@ -21,7 +21,7 @@ like(exception {TestRail::API->new('trash');}, qr/invalid uri/i, "Non-URIs bounc
 #XXX for some insane reason 'hokum.bogus' seems to be popular with cpantesters
 my $bogoError = exception {TestRail::API->new('http://hokum.bogus','lies','moreLies',0); };
 SKIP: {
-    skip("Some CPANTesters like to randomly redirect all DNS misses to some other host, apparently", 1) if ($bogoError =~ m/404/);
+    skip("Some CPANTesters like to randomly redirect all DNS misses to some other host, apparently", 1) if ($bogoError =~ m/404|302/);
     like($bogoError, qr/Could not communicate with TestRail Server/i,"Bogus Testrail URI rejected");
 }