vtest "Test ESI rollback interaction"

server s1 {
	rxreq
	expect req.url == "/"
	txresp -body {<esi:include src="/esi"/>}

	rxreq
	expect req.url == "/esi"
	txresp -body "1"
} -start

vinyl v1 -vcl+backend {
	import std;
	sub vcl_recv {
		std.rollback(req);
	}
	sub vcl_backend_response {
		set beresp.do_esi = true;
	}
} -start

client c1 {
	txreq
	rxresp
	expect resp.bodylen == 1
} -run
