]> git.pld-linux.org Git - packages/Perlbal.git/commitdiff
- fix for t/15-webserver's assumption of time standing still
authorradek <radek@pld-linux.org>
Sun, 16 Sep 2007 17:54:52 +0000 (17:54 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    Perlbal-test_15_webserver.patch -> 1.1

Perlbal-test_15_webserver.patch [new file with mode: 0644]

diff --git a/Perlbal-test_15_webserver.patch b/Perlbal-test_15_webserver.patch
new file mode 100644 (file)
index 0000000..2a092f3
--- /dev/null
@@ -0,0 +1,12 @@
+--- Perlbal-1.59/t/15-webserver.t.orig 2007-09-16 18:52:34.661705909 +0100
++++ Perlbal-1.59/t/15-webserver.t      2007-09-16 18:53:07.656672320 +0100
+@@ -64,7 +64,8 @@
+ ok(get("$url?foo=bar") eq $contents, "GET request");
+ {
+-    my $req = HTTP::Request->new(GET => $url, [ 'If-Modified-Since' => HTTP::Date::time2str() ]);
++    my $ims = HTTP::Date::time2str( ( stat $disk_file )[9] );
++    my $req = HTTP::Request->new(GET => $url, [ 'If-Modified-Since' => $ims ]);
+     my $res = $ua->request($req);
+     is($res->code, 304, "Got not modified");
This page took 0.063283 seconds and 4 git commands to generate.