X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F39load_namespaces_stress.t;h=bfef36056fc52a30fb9b94aa23d7b2c0b308dd8c;hb=HEAD;hp=db178ee2ac70cabfbfa5b8f2fafb55e117a439e7;hpb=db29433c74a98967f61f117bd508c06055db2892;p=dbsrgits%2FDBIx-Class.git diff --git a/t/39load_namespaces_stress.t b/t/39load_namespaces_stress.t index db178ee..bfef360 100644 --- a/t/39load_namespaces_stress.t +++ b/t/39load_namespaces_stress.t @@ -1,9 +1,9 @@ +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } + use strict; use warnings; use Test::More; -use Time::HiRes qw/gettimeofday/; -use lib qw(t/lib); use DBICTest; # do not remove even though it is not used our $src_count = 100; @@ -27,7 +27,7 @@ EOM { package DBICTest::NS::Stress::Schema; - use base qw/DBIx::Class::Schema/; + use base qw/DBICTest::BaseSchema/; sub _findallmod { return $_[1] eq ( __PACKAGE__ . '::Result' ) @@ -39,10 +39,7 @@ EOM is (DBICTest::NS::Stress::Schema->sources, 0, 'Start with no sources'); - -note gettimeofday . ":\tload_namespaces start"; DBICTest::NS::Stress::Schema->load_namespaces; -note gettimeofday . ":\tload_namespaces finished"; is (DBICTest::NS::Stress::Schema->sources, $src_count, 'All sources attached');