f-41: dispatcher: arrêt des workers avant la fermeture de la base dans les tests #41
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
parent
3dd94f35dd
commit
e2faf85e96
1 changed files with 1 additions and 0 deletions
|
|
@ -17,6 +17,7 @@ func newTestDispatcher(t *testing.T) (*Dispatcher, *badger.DB) {
|
|||
t.Cleanup(func() { db.Close() })
|
||||
q := worker.New(100)
|
||||
q.Start(2)
|
||||
t.Cleanup(q.Stop)
|
||||
cfg := &configuration.Config{DefaultInterface: "br-default"}
|
||||
cfg.Interfaces = map[string]string{"vms": "br-vms"}
|
||||
logger := slog.New(slog.NewTextHandler(io.Discard, nil))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue