summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2018-09-09 13:20:10 +0200
committerFlorian Pritz <bluewind@xinu.at>2018-09-09 15:45:11 +0200
commit4618b97a5ee76a9b7bf469ff5d10d8ccacbce011 (patch)
treecf0caef3a500c5d1853a0ee306ae55d4f9a22255 /t
parent0c56663e09dd80a2c5225446a46b5bd908eb829d (diff)
downloadApp-BorgRestore-4618b97a5ee76a9b7bf469ff5d10d8ccacbce011.tar.gz
App-BorgRestore-4618b97a5ee76a9b7bf469ff5d10d8ccacbce011.tar.xz
Get settings via hash instead of direct variable access
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 't')
-rw-r--r--t/handle_added_archives.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/handle_added_archives.t b/t/handle_added_archives.t
index 01f8663..d29c52a 100644
--- a/t/handle_added_archives.t
+++ b/t/handle_added_archives.t
@@ -32,7 +32,7 @@ $borg->mock('list_archive', sub {
} );
# 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 => 1}});
$app->_handle_added_archives(['archive-1']);
# Check if $db->add_path has been called properly