clean up environment in tests to avoid outside interference
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / 10-live_auto.t
index 782bf7d..90bc05c 100644 (file)
@@ -6,6 +6,13 @@ use lib "$FindBin::Bin/lib";
 
 use Test::More tests => 5;
 
+BEGIN {
+    # Remove all relevant env variables to avoid accidental fail
+    foreach my $name ( grep { m{^(CATALYST)} } keys %ENV ) {
+        delete $ENV{ $name };
+    }
+}
+
 use Catalyst::Test 'TestApp';
 
 {