From: phk Date: Tue, 3 Feb 2009 12:59:13 +0000 (+0000) Subject: Update this test to actually test what it should. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a7e6bd45e6e2ef6ae403de0f40ae6b5a4abb98a;p=varnish Update this test to actually test what it should. I suspect a white-space cleanup got it at some point. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3571 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishtest/tests/e00007.vtc b/varnish-cache/bin/varnishtest/tests/e00007.vtc index b8c8bf91..5ab87c25 100644 --- a/varnish-cache/bin/varnishtest/tests/e00007.vtc +++ b/varnish-cache/bin/varnishtest/tests/e00007.vtc @@ -2,17 +2,30 @@ test "ESI spanning storage bits" +# NB! The layout of the body in the response is very carefully +# NB! tuned to give the desired code coverage. +# NB! It should look like this in the varnishlog: +# NB! 7 Debug c "Fetch 32 byte segments:" +# NB! 7 Debug c "%0a%09%09filler%0a%09%09This is before" +# NB! 7 Debug c " the test%0a%09%09%0a%09%09filler%0a%09%09This is a test: Unseen Un" +# NB! 7 Debug c "iversity%0a%09%09Department of cruel a" +# NB! 7 Debug c "nd unjust geography%0a%09%09%0a%09%09This is a test: Hello worl" +# NB! 7 Debug c "d%0a%09" server s1 { rxreq expect req.url == "/foo/bar" txresp -hdr "Connection: close" send { - + filler This is before the test - - + + filler This is a test: Unseen University + Department of cruel and unjust geography This is a test: Hello world } @@ -30,6 +43,7 @@ client c1 { txreq -url /foo/bar -hdr "Host: froboz" rxresp expect resp.status == 200 + expect resp.bodylen == 120 } client c1 -run