diff options
author | Florian Pritz <bluewind@xinu.at> | 2017-04-11 00:16:05 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2017-04-11 00:16:05 +0200 |
commit | 53c1c9b767096340a34387536b066d62ea5f40d8 (patch) | |
tree | 00634b010a1804eefb5e7f70c85f224c3b219eaa | |
parent | 293d6c0b8647d18d98030215b1bfa3b922f20a08 (diff) | |
download | App-BorgRestore-53c1c9b767096340a34387536b066d62ea5f40d8.tar.gz App-BorgRestore-53c1c9b767096340a34387536b066d62ea5f40d8.tar.xz |
t2_parsing: Ensure the timezone is reset after modifying TZ
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | t/02_parsing.t | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/t/02_parsing.t b/t/02_parsing.t index 743ccd7..407dfd9 100644 --- a/t/02_parsing.t +++ b/t/02_parsing.t @@ -1,9 +1,10 @@ use strict; use warnings; -use Test::More; -use Test::MockObject; +use POSIX qw(tzset); use Test::Differences; +use Test::MockObject; +use Test::More; use App::BorgRestore; @@ -14,6 +15,7 @@ $db->mock('-get_archive_id', sub {return 'prefix-archive-1' if $_[1] eq 'archive $db->mock('-get_archive_names', sub {return []}); $ENV{TZ} = 'UTC'; +tzset; my $borg = Test::MockObject->new(); $borg->set_list('borg_list', ['archive-1']); |