[Rt-commit] rt branch, psgi, updated. rt-3.9.4-277-g778c1db

? sunnavy sunnavy at bestpractical.com
Tue Nov 2 00:09:44 EDT 2010


The branch, psgi has been updated
       via  778c1db605d9506b33ff7aa007d168a85999661a (commit)
      from  d33e5dbb4b128692f75c58347f5b945b6e11b8b9 (commit)

Summary of changes:
 lib/RT/Test.pm |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

- Log -----------------------------------------------------------------
commit 778c1db605d9506b33ff7aa007d168a85999661a
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Tue Nov 2 12:07:44 2010 +0800

    ConnectToDatabase in parent pid

diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index 9fa05f1..b9fd1e9 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -1186,14 +1186,13 @@ sub start_plack_server {
         my $Tester = Test::Builder->new;
         $Tester->ok(1, @_);
 
-        return ("http://localhost:$port", RT::Test::Web->new);
-    } else {
         $RT::Handle = RT::Handle->new;
         $RT::Handle->dbh( undef );
         RT->ConnectToDatabase;
-
         # the attribute cache holds on to a stale dbh
         delete $RT::System->{attributes};
+
+        return ("http://localhost:$port", RT::Test::Web->new);
     }
 
     require POSIX;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list