Allow to configure delay before controller exits (#8143)
* Allow to configure delay before controller exits Signed-off-by: Aditya Kamath <theunrealgeek@gmail.com> * Address comments Signed-off-by: Aditya Kamath <theunrealgeek@gmail.com>
This commit is contained in:
parent
4badf20173
commit
2aa34202c1
5 changed files with 11 additions and 6 deletions
|
|
@ -105,7 +105,7 @@ func TestHandleSigterm(t *testing.T) {
|
|||
|
||||
ngx := controller.NewNGINXController(conf, nil)
|
||||
|
||||
go handleSigterm(ngx, func(code int) {
|
||||
go handleSigterm(ngx, 10, func(code int) {
|
||||
if code != 1 {
|
||||
t.Errorf("Expected exit code 1 but %d received", code)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue