From 981cd0404a2a3a0a8a320c1709151b18075a3655 Mon Sep 17 00:00:00 2001 From: Dylan Hardison Date: Thu, 25 Feb 2016 10:17:05 -0500 Subject: [PATCH] Bug 1250944 - 001compile.t doesn't set error mode, so errors exit the test suite r=dkl,a=dylan --- Bugzilla/Error.pm | 1 - t/001compile.t | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Bugzilla/Error.pm b/Bugzilla/Error.pm index 77a272e1e5..8640247941 100644 --- a/Bugzilla/Error.pm +++ b/Bugzilla/Error.pm @@ -25,7 +25,6 @@ use Date::Format; sub _throw_error { my ($name, $error, $vars) = @_; - my $dbh = Bugzilla->dbh; my $cache = Bugzilla->request_cache; $vars ||= {}; diff --git a/t/001compile.t b/t/001compile.t index da95b7327d..e061b06c6b 100644 --- a/t/001compile.t +++ b/t/001compile.t @@ -25,6 +25,7 @@ BEGIN { use_ok('Bugzilla::Install::Requirements'); use_ok('Bugzilla'); } +Bugzilla->usage_mode(USAGE_MODE_TEST); sub compile_file { my ($file) = @_; -- 2.47.3