[Rt-commit] rt branch, 3.9-fix-queue-caching, updated. rt-3.8.8-791-g425c871

Kevin Falcone falcone at bestpractical.com
Tue Sep 21 18:22:27 EDT 2010


The branch, 3.9-fix-queue-caching has been updated
       via  425c871101f3516d2aaa68e332bd9da3101c761d (commit)
      from  c150bca54433f808e64e458eddbe70e08e14c4a5 (commit)

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

- Log -----------------------------------------------------------------
commit 425c871101f3516d2aaa68e332bd9da3101c761d
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Tue Sep 21 18:24:57 2010 -0400

    flush the attribute cache's dbh more globally
    
    Adding an attribute to queues during setup causes interactions we
    haven't see before unfortunately.

diff --git a/lib/RT/Test.pm b/lib/RT/Test.pm
index 4772754..410a636 100644
--- a/lib/RT/Test.pm
+++ b/lib/RT/Test.pm
@@ -1118,6 +1118,8 @@ sub start_standalone_server {
     $RT::Handle->dbh( undef );
     RT->ConnectToDatabase;
 
+    # the attribute cache holds on to a stale dbh
+    delete $RT::System->{attributes};
     return ($ret, RT::Test::Web->new);
 }
 
diff --git a/t/web/queue_caching.t b/t/web/queue_caching.t
index 17c8c60..48e88e0 100644
--- a/t/web/queue_caching.t
+++ b/t/web/queue_caching.t
@@ -8,9 +8,6 @@ my $original_test_queue = new_queue("Test$$");
 my ($baseurl, $m) = RT::Test->started_ok;
 ok $m->login, 'logged in';
 
-# the attribute cache hangs on to an old dbh
-delete $RT::System->{attributes};
-
 diag("Check for 2 existing queues being visible");
 {
     check_queues($m);

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


More information about the Rt-commit mailing list