Compare commits

...

2 commits

Author SHA1 Message Date
5358050f93
Merge branch 'feature-83'
All checks were successful
Documentation / publish (push) Successful in 1m27s
2026-10-24 16:42:18 +02:00
351635d9b5
f-83: watchdog: le test attend la fin de Run avant la fermeture de la base #83
Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
2026-10-24 16:41:33 +02:00

View file

@ -111,8 +111,15 @@ func TestRun_VerifieLesTroisTypesDeRessource(t *testing.T) {
w := New(db, testCfg(t), n, l, 10*time.Millisecond)
ctx, cancel := context.WithCancel(context.Background())
defer cancel()
go w.Run(ctx)
done := make(chan struct{})
go func() {
w.Run(ctx)
close(done)
}()
defer func() {
cancel()
<-done
}()
kinds := map[string]bool{}
deadline := time.After(5 * time.Second)