chore(queue): Shutdown service once. (#610)
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
@@ -38,6 +38,8 @@ func TestShutdown(t *testing.T) {
|
||||
q.Start()
|
||||
time.Sleep(1 * time.Second)
|
||||
q.Shutdown()
|
||||
// check shutdown once
|
||||
q.Shutdown()
|
||||
q.Wait()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user