Revamp module structure

- Add shutdown mechanics to module
- Adapt dbmodule to new mechanics
This commit is contained in:
Daniel 2019-08-09 16:45:43 +02:00
parent 090669728d
commit 402429cd70
11 changed files with 108 additions and 37 deletions

View file

@ -202,11 +202,11 @@ func TestErrors(t *testing.T) {
startCompleteSignal = make(chan struct{})
// test help flag
helpFlag = true
HelpFlag = true
err = Start()
if err == nil {
t.Error("should fail")
}
helpFlag = false
HelpFlag = false
}