vtest "Dropping polling of a backend"

server s1 -repeat 40 {
	non_fatal
	rxreq
	txresp
} -start

vinyl v1 -vcl {
	probe default {
		.window = 8;
		.initial = 7;
		.threshold = 8;
		.interval = 0.1s;
	}
	backend s1 {
		.host = "${s1_addr}";
		.port = "${s1_port}";
	}
} -start

delay 1

vinyl v1 -vcl+backend { } -cliok "vcl.use vcl2" -cliok "vcl.discard vcl1"

delay 1

vinyl v1 -cliok "vcl.list"
vinyl v1 -cliok "backend.list -p"

server s1 -break {
	rxreq
	expect req.url == /foo
	txresp -bodylen 4
} -start

client c1 {
	txreq -url /foo
	rxresp
	expect resp.status == 200
	expect resp.bodylen == 4
} -run
