Commit 6d76ccd9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't rely on the test executing fast enough and repeatably enough that

two separate timestamps just happen to be the same, just make them
the same.
parent 223ff71a
......@@ -3,7 +3,8 @@ varnishtest "Ticket #907 200/304 handling with Etags + Last-Modified"
server s1 {
rxreq
txresp \
-hdr "ETag: saengei1Ohshicich4iteesu"
-hdr "ETag: saengei1Ohshicich4iteesu" \
-hdr "Last-Modified: Tue, 20 Sep 2011 18:55:00 GMT"
} -start
varnish v1 -vcl+backend {
......@@ -16,8 +17,15 @@ client c1 {
txreq -hdr "If-None-Match: saengei1Ohshicich4iteesu"
rxresp
expect resp.status == 304
txreq -hdr "If-None-Match: saengei1Ohshicich4iteesu" \
-hdr "If-Modified-Since: ${date}"
-hdr "If-Modified-Since: Tue, 20 Sep 2011 18:54:59 GMT"
rxresp
expect resp.status == 200
txreq -hdr "If-None-Match: saengei1Ohshicich4iteesu" \
-hdr "If-Modified-Since: Tue, 20 Sep 2011 18:55:00 GMT"
rxresp
expect resp.status == 304
} -run
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment