[libhttp-cookiejar-perl] 03/04: add patch to use Test::MockTime

gregor herrmann gregoa at debian.org
Sat Mar 1 23:24:01 UTC 2014


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libhttp-cookiejar-perl.

commit 382447d154350a3eee7963dfe8ed9c474d76b984
Author: gregor herrmann <gregoa at debian.org>
Date:   Sun Mar 2 00:21:25 2014 +0100

    add patch to use Test::MockTime
---
 debian/patches/series                  |  1 +
 debian/patches/use_test-mocktime.patch | 26 ++++++++++++++++++++++++++
 2 files changed, 27 insertions(+)

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..2272c68
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use_test-mocktime.patch
diff --git a/debian/patches/use_test-mocktime.patch b/debian/patches/use_test-mocktime.patch
new file mode 100644
index 0000000..4600683
--- /dev/null
+++ b/debian/patches/use_test-mocktime.patch
@@ -0,0 +1,26 @@
+Description: Time::Mock is not packaged, Test::MockTime is and seems to work as well ...
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gregoa at debian.org>
+Last-Update: 2014-03-02
+
+--- a/t/sort.t
++++ b/t/sort.t
+@@ -3,7 +3,7 @@
+ use warnings;
+ use Test::More 0.96;
+ use Test::Deep '!blessed';
+-use Time::Mock;
++use Test::MockTime;
+ 
+ use HTTP::CookieJar;
+ 
+@@ -32,7 +32,7 @@
+     my $jar    = HTTP::CookieJar->new;
+     my $offset = 0;
+     for my $cookie ( @{ $c->{cookies} } ) {
+-        Time::Mock->offset($offset);
++        Test::MockTime::set_relative_time($offset);
+         $jar->add(@$cookie);
+         $offset += 10;
+     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libhttp-cookiejar-perl.git



More information about the Pkg-perl-cvs-commits mailing list