From b5243a148a9ac8b9abcbf0ae0b27046b153a835b Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 9 Sep 2018 14:21:22 +0200 Subject: handle_added_archives_with_db.t: Use new_no_defaults instead of new Signed-off-by: Florian Pritz --- t/handle_added_archives_with_db.t | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/t/handle_added_archives_with_db.t b/t/handle_added_archives_with_db.t index 90c359c..c587261 100644 --- a/t/handle_added_archives_with_db.t +++ b/t/handle_added_archives_with_db.t @@ -10,8 +10,6 @@ use App::BorgRestore; use App::BorgRestore::Settings; for my $in_memory (0,1) { - $App::BorgRestore::Settings::prepare_data_in_memory = $in_memory; - my $db = App::BorgRestore::DB->new(":memory:", 0); $ENV{TZ} = 'UTC'; @@ -31,7 +29,7 @@ for my $in_memory (0,1) { } ); # Call the actual function we want to test - my $app = App::BorgRestore->new({borg => $borg, db => $db}); + my $app = App::BorgRestore->new_no_defaults({borg => $borg, db => $db}, {cache => {prepare_data_in_memory => $in_memory}}); $app->_handle_added_archives(['archive-1']); # check database content -- cgit v1.2.3-24-g4f1b