[6.0] 4cc66784f test durations with decimals as inputs to std.duration
Dridi Boukelmoune
dridi.boukelmoune at gmail.com
Tue Feb 12 13:28:09 UTC 2019
commit 4cc66784f1259475cc1f75ee09cd9e9d0fb2b35e
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Sun Dec 9 22:22:21 2018 +0100
test durations with decimals as inputs to std.duration
diff --git a/bin/varnishtest/tests/m00005.vtc b/bin/varnishtest/tests/m00005.vtc
index fecbe3fc6..13e8c2dc9 100644
--- a/bin/varnishtest/tests/m00005.vtc
+++ b/bin/varnishtest/tests/m00005.vtc
@@ -14,13 +14,17 @@ varnish v1 -vcl+backend {
} -start
client c1 {
+ txreq -hdr "ttl: 0.010s"
+ rxresp
+ expect resp.http.ttl == 1000000.010
+
txreq -hdr "ttl: 10ms"
rxresp
expect resp.http.ttl == 1000000.010
- txreq -hdr "ttl: 10s"
+ txreq -hdr "ttl: 10.1s"
rxresp
- expect resp.http.ttl == 1000010.000
+ expect resp.http.ttl == 1000010.100
txreq -hdr "ttl: 10m"
rxresp
More information about the varnish-commit
mailing list