Make sure external DBIC envvars do not cause tests to fail
[dbsrgits/DBIx-Class.git] / t / 86might_have.t
index c1a66de..0ca9a06 100644 (file)
@@ -40,6 +40,8 @@ is($queries, 1, 'liner_notes (might_have) prefetched - do not load
 liner_notes on update');
 
 warning_like {
+  local $ENV{DBIC_DONT_VALIDATE_RELS};
+
   DBICTest::Schema::Bookmark->might_have(
     linky => 'DBICTest::Schema::Link',
     { "foreign.id" => "self.link" },