summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-09-09 14:21:22 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-09-09 15:45:11 +0200
commitb5243a148a9ac8b9abcbf0ae0b27046b153a835b (patch)
tree8dec2cb1300bcae29c5a65bae460f0aaa6445ec1
parent24020b15dea6da187d10aa87b989defd56d8f133 (diff)
downloadApp-BorgRestore-b5243a148a9ac8b9abcbf0ae0b27046b153a835b.tar.gz
App-BorgRestore-b5243a148a9ac8b9abcbf0ae0b27046b153a835b.tar.xz
handle_added_archives_with_db.t: Use new_no_defaults instead of new
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--t/handle_added_archives_with_db.t4
1 files changed, 1 insertions, 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