lib/model: Prevent cleanup-race in testing (ref #6152) (#6155)

This commit is contained in:
Simon Frei
2019-11-14 23:08:40 +01:00
committed by GitHub
parent a5699d40a8
commit 5edf4660e2
2 changed files with 96 additions and 53 deletions

View File

@@ -66,6 +66,7 @@ func TestProgressEmitter(t *testing.T) {
p := NewProgressEmitter(c, evLogger)
go p.Serve()
defer p.Stop()
p.interval = 0
expectTimeout(w, t)