From 4618b97a5ee76a9b7bf469ff5d10d8ccacbce011 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 9 Sep 2018 13:20:10 +0200 Subject: Get settings via hash instead of direct variable access Signed-off-by: Florian Pritz --- t/handle_added_archives.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't') 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 -- cgit v1.2.3-24-g4f1b