varnishtest "H/1 -> H/2 upgrade"

feature cmd "nghttp --version | grep -q 'nghttp2/[1-9]'"

server s1 {
	rxreq
	upgrade

	stream 1 { rxprio } -start
	stream 3 { rxprio } -start
	stream 5 { rxprio } -start
	stream 7 { rxprio } -start
	stream 9 { rxprio } -start
	stream 11 { rxprio } -start

	stream 0 -wait
	stream 1 -wait { txresp } -run

	stream 0 { rxgoaway } -run

} -start

shell { nghttp http://${s1_sock} -nu }

server s1 -wait
