vtest "Deconfigure thread pool"

# First with default waiter

server s1 {
	rxreq
	txresp
} -start

vinyl v1 -vcl+backend {} -start

vinyl v1 -cliok "param.set experimental +drop_pools"
vinyl v1 -cliok "param.set debug +slow_acceptor"
vinyl v1 -cliok "param.set thread_pools 1"

delay 2

client c1 -repeat 2 {
	txreq
	rxresp
} -run

delay 2

vinyl v1 -vsc *thr*
vinyl v1 -vsc *poo*
vinyl v1 -expect MAIN.pools == 1

client c1 {
	txreq
	rxresp
} -run

# Then with poll waiter

server s1 {
	rxreq
	txresp
} -start

vinyl v2 -arg "-Wpoll" -vcl+backend {} -start

vinyl v2 -cliok "param.set experimental +drop_pools"
vinyl v2 -cliok "param.set debug +slow_acceptor"
vinyl v2 -cliok "param.set thread_pools 1"

delay 2

client c2 -connect ${v2_sock} -repeat 2 {
	txreq
	rxresp
} -run

delay 2

vinyl v2 -vsc *thr*
vinyl v2 -vsc *poo*
vinyl v2 -expect MAIN.pools == 1

client c2 -connect ${v2_sock} {
	txreq
	rxresp
} -run
