Docker-DCO-1.1-Signed-off-by: Rajdeep Dua <dua_rajdeep@yahoo.com> (github: rajdeepd)
Rajdeep Dua authored on 2014/08/19 20:42:56... | ... |
@@ -61,6 +61,17 @@ func TestJob(t *testing.T) { |
61 | 61 |
} |
62 | 62 |
} |
63 | 63 |
|
64 |
+func TestEngineShutdown(t *testing.T) { |
|
65 |
+ eng := New() |
|
66 |
+ if eng.IsShutdown() { |
|
67 |
+ t.Fatalf("Engine should not show as shutdown") |
|
68 |
+ } |
|
69 |
+ eng.Shutdown() |
|
70 |
+ if !eng.IsShutdown() { |
|
71 |
+ t.Fatalf("Engine should show as shutdown") |
|
72 |
+ } |
|
73 |
+} |
|
74 |
+ |
|
64 | 75 |
func TestEngineCommands(t *testing.T) { |
65 | 76 |
eng := New() |
66 | 77 |
handler := func(job *Job) Status { return StatusOK } |