From e2faf85e962479ca7e7c597713c7394cd11c56db Mon Sep 17 00:00:00 2001 From: GnomeZworc Date: Sun, 11 Oct 2026 20:21:14 +0200 Subject: [PATCH] =?UTF-8?q?f-41:=20dispatcher:=20arr=C3=AAt=20des=20worker?= =?UTF-8?q?s=20avant=20la=20fermeture=20de=20la=20base=20dans=20les=20test?= =?UTF-8?q?s=20#41?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: GnomeZworc --- internal/dispatcher/agent/helpers_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/dispatcher/agent/helpers_test.go b/internal/dispatcher/agent/helpers_test.go index c14f6a3..2e6cbcc 100644 --- a/internal/dispatcher/agent/helpers_test.go +++ b/internal/dispatcher/agent/helpers_test.go @@ -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))