Add nginx helper tests

This commit is contained in:
Manuel de Brito Fontes 2017-11-06 20:48:34 -03:00
parent c3873a60e6
commit 9124a47ee9
2 changed files with 45 additions and 0 deletions

View file

@ -29,6 +29,7 @@ import (
"github.com/ncabatoff/process-exporter/proc"
)
// IsRespawnIfRequired checks if error type is exec.ExitError or not
func IsRespawnIfRequired(err error) bool {
exitError, ok := err.(*exec.ExitError)
if !ok {