Compare commits
No commits in common. "5358050f93cac29837d6e452180de70af43af2dc" and "aaef16af25acca91a03e7d35a807ba5887fa8904" have entirely different histories.
5358050f93
...
aaef16af25
1 changed files with 2 additions and 9 deletions
|
|
@ -111,15 +111,8 @@ func TestRun_VerifieLesTroisTypesDeRessource(t *testing.T) {
|
||||||
w := New(db, testCfg(t), n, l, 10*time.Millisecond)
|
w := New(db, testCfg(t), n, l, 10*time.Millisecond)
|
||||||
|
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
done := make(chan struct{})
|
defer cancel()
|
||||||
go func() {
|
go w.Run(ctx)
|
||||||
w.Run(ctx)
|
|
||||||
close(done)
|
|
||||||
}()
|
|
||||||
defer func() {
|
|
||||||
cancel()
|
|
||||||
<-done
|
|
||||||
}()
|
|
||||||
|
|
||||||
kinds := map[string]bool{}
|
kinds := map[string]bool{}
|
||||||
deadline := time.After(5 * time.Second)
|
deadline := time.After(5 * time.Second)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue