diff --git a/engine/engine_test.go b/engine/engine_test.go index de7f74012e..92f3757251 100644 --- a/engine/engine_test.go +++ b/engine/engine_test.go @@ -61,6 +61,17 @@ func TestJob(t *testing.T) { } } +func TestEngineShutdown(t *testing.T) { + eng := New() + if eng.IsShutdown() { + t.Fatalf("Engine should not show as shutdown") + } + eng.Shutdown() + if !eng.IsShutdown() { + t.Fatalf("Engine should show as shutdown") + } +} + func TestEngineCommands(t *testing.T) { eng := New() handler := func(job *Job) Status { return StatusOK }