[Bps-public-commit] rt-authen-externalauth branch, master, updated. 0.13-19-g8f6d6ad

Thomas Sibley trs at bestpractical.com
Wed May 22 17:26:45 EDT 2013


The branch, master has been updated
       via  8f6d6adbe653d6ed2c88c898afcb5b5dcee5a1c6 (commit)
       via  5261f0547c16a95525b9e85bdbdcbb98a48db2c4 (commit)
      from  a137b57f039fbeecf48c29adb289e31ec966b1ee (commit)

Summary of changes:
 xt/sessions.t | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 5261f0547c16a95525b9e85bdbdcbb98a48db2c4
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed May 22 14:26:20 2013 -0700

    Report test failures from the correct caller location

diff --git a/xt/sessions.t b/xt/sessions.t
index 5379d8b..3c764e4 100644
--- a/xt/sessions.t
+++ b/xt/sessions.t
@@ -12,6 +12,8 @@ RT->Config->Set("WebSessionClass" => "Apache::Session::File");
 {
     my %sessions;
     sub sessions_seen_is {
+        local $Test::Builder::Level = $Test::Builder::Level + 1;
+
         my ($agent, $expected, $msg) = @_;
         $msg ||= "$expected sessions seen";
 

commit 8f6d6adbe653d6ed2c88c898afcb5b5dcee5a1c6
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Wed May 22 14:25:53 2013 -0700

    Adjust tests to account for new sessions instantiated upon logout in RT 4.0.13

diff --git a/xt/sessions.t b/xt/sessions.t
index 3c764e4..c1784d4 100644
--- a/xt/sessions.t
+++ b/xt/sessions.t
@@ -39,7 +39,7 @@ diag "Login as tom";
     sessions_seen_is($m, 1);
 
     $m->get_ok("/NoAuth/Logout.html");
-    sessions_seen_is($m, 1);
+    sessions_seen_is($m, 2);
 }
 
 diag "Login as alex";
@@ -52,9 +52,10 @@ diag "Login as alex";
         },
     );
     $m->text_contains( 'Logout', 'logged in via form' );
-    sessions_seen_is($m, 2);
+    sessions_seen_is($m, 3);
 
     $m->get_ok("/NoAuth/Logout.html");
+    sessions_seen_is($m, 4);
 }
 
 undef $m;

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



More information about the Bps-public-commit mailing list