Sha256: e037f44c68cfaf03125257ff7d211d9dcde50086f360a3eeb363a1e28bfd3f21

Contents?: true

Size: 1.17 KB

Versions: 102

Compression:

Stored size: 1.17 KB

Contents

#!/bin/sh
. ./test-lib.sh
t_plan 9 "OobGC test"

t_begin "setup and start" && {
	unicorn_setup
	unicorn -D -c $unicorn_config oob_gc.ru
	unicorn_wait_start
}

t_begin "test default interval (4 requests)" && {
	test xfalse = x$(curl -vsSf http://$listen/ 2>> $tmp)
	test xfalse = x$(curl -vsSf http://$listen/ 2>> $tmp)
	test xfalse = x$(curl -vsSf http://$listen/ 2>> $tmp)
	test xfalse = x$(curl -vsSf http://$listen/ 2>> $tmp)
}

t_begin "GC starting-request returns immediately" && {
	test xfalse = x$(curl -vsSf http://$listen/ 2>> $tmp)
}

t_begin "GC is started after 5 requests" && {
	test xtrue = x$(curl -vsSf http://$listen/ 2>> $tmp)
}

t_begin "reset GC" && {
	test xfalse = x$(curl -vsSf -X POST http://$listen/gc_reset 2>> $tmp)
}

t_begin "test default interval again (3 requests)" && {
	test xfalse = x$(curl -vsSf http://$listen/ 2>> $tmp)
	test xfalse = x$(curl -vsSf http://$listen/ 2>> $tmp)
	test xfalse = x$(curl -vsSf http://$listen/ 2>> $tmp)
}

t_begin "GC is started after 5 requests" && {
	test xtrue = x$(curl -vsSf http://$listen/ 2>> $tmp)
}

t_begin "killing succeeds" && {
	kill -QUIT $unicorn_pid
}

t_begin "check_stderr" && check_stderr
dbgcat r_err

t_done

Version data entries

102 entries across 102 versions & 11 rubygems

Version Path
unicorn-maintained-6.2.0 t/t9001-oob_gc.sh
unicorn-6.1.0 t/t9001-oob_gc.sh
unicorn-6.0.0 t/t9001-oob_gc.sh
unicorn-5.8.0 t/t9001-oob_gc.sh
unicorn-5.7.0 t/t9001-oob_gc.sh
unicorn-5.6.0 t/t9001-oob_gc.sh
unicorn-5.5.5 t/t9001-oob_gc.sh
unicorn-5.5.4 t/t9001-oob_gc.sh
unicorn-5.5.3 t/t9001-oob_gc.sh
unicorn-5.5.2 t/t9001-oob_gc.sh
unicorn-5.5.1 t/t9001-oob_gc.sh
unicorn-5.5.0.1.g6836 t/t9001-oob_gc.sh
unicorn-5.5.0 t/t9001-oob_gc.sh
unicorn-5.5.0.pre1 t/t9001-oob_gc.sh
unicorn-5.4.1 t/t9001-oob_gc.sh
unicorn-5.4.0 t/t9001-oob_gc.sh
unicorn-5.3.1 t/t9001-oob_gc.sh
unicorn-shopify-5.3.0 t/t9001-oob_gc.sh
unicorn-5.3.0 t/t9001-oob_gc.sh
unicorn-5.3.0.pre1 t/t9001-oob_gc.sh