From 93af313b49a44b83d13691fe870f8f8fe84e6f92 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Thu, 7 Feb 2019 13:35:48 +0100 Subject: t/handle_added_archives: Document weird test Signed-off-by: Florian Pritz --- t/handle_added_archives_with_db.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/handle_added_archives_with_db.t b/t/handle_added_archives_with_db.t index db38b83..2e222b3 100644 --- a/t/handle_added_archives_with_db.t +++ b/t/handle_added_archives_with_db.t @@ -58,7 +58,7 @@ for my $in_memory (0,1) { eq_or_diff($db->get_archives_for_path('etc/foo'), [{archive => 'archive-1', modification_time => 2},]); eq_or_diff($db->get_archives_for_path('etc/foo/bar'), [{archive => 'archive-1', modification_time => 1},]); eq_or_diff($db->get_archives_for_path('etc/foo/blub'), [{archive => 'archive-1', modification_time => 1},]); - eq_or_diff($db->get_archives_for_path('lulz'), [{archive => 'archive-1', modification_time => undef},]); + eq_or_diff($db->get_archives_for_path('lulz'), [{archive => 'archive-1', modification_time => undef},], 'test non-existant path'); # add second archive @@ -156,7 +156,7 @@ for my $in_memory (0,1) { eq_or_diff($db->get_archives_for_path('lulz'), [ {archive => 'archive-1', modification_time => undef}, {archive => 'archive-2', modification_time => undef}, - ]); + ], 'test non-existant path'); # remove first archive $app->_handle_removed_archives(['archive-2']); @@ -179,7 +179,7 @@ for my $in_memory (0,1) { eq_or_diff($db->get_archives_for_path('etc/foo'), [{archive => 'archive-2', modification_time => 2},]); eq_or_diff($db->get_archives_for_path('etc/foo/bar'), [{archive => 'archive-2', modification_time => 1},]); eq_or_diff($db->get_archives_for_path('etc/foo/blub'), [{archive => 'archive-2', modification_time => undef},]); - eq_or_diff($db->get_archives_for_path('lulz'), [{archive => 'archive-2', modification_time => undef},]); + eq_or_diff($db->get_archives_for_path('lulz'), [{archive => 'archive-2', modification_time => undef},], 'test non-existant path'); } -- cgit v1.2.3-24-g4f1b