Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
diff --git a/t/lib/WebGUI/Test.pm b/t/lib/WebGUI/Test.pm
index 04b6eb9..07f96b5 100644
--- a/t/lib/WebGUI/Test.pm
+++ b/t/lib/WebGUI/Test.pm
@@ -74,6 +74,8 @@ our @EXPORT_OK = qw(session config);
my $CLASS = __PACKAGE__;
my @guarded;
+
+our $SESSION;
sub import {
our $CONFIG_FILE = $ENV{ WEBGUI_CONFIG };
@@ -88,7 +90,7 @@ sub import {
unless -r _;
$CONFIG_FILE = File::Spec->abs2rel($CONFIG_FILE, File::Spec->catdir($CLASS->root, 'etc'));
- my $session = our $SESSION = $CLASS->newSession(1);
+ my $session = $SESSION = $CLASS->newSession(1);
my $originalSetting = clone $session->setting->get;
push @guarded, Scope::Guard->new(sub {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.