Commit 971295d
committed
Add sleep to manager test to avoid event broadcaster leak.
Event broadcaster goroutine leaks may happen due to a race condition
where the broadcaster is started and shutdown in quick successtion.
Realistically this is not an issue to usage since the broadcaster is
usually long lived.
To avoid this on the test, a short sleep has been added between start
and shutdown.
Signed-off-by: Borja Clemente <[email protected]>1 parent 5ee742d commit 971295d
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1894 | 1894 | | |
1895 | 1895 | | |
1896 | 1896 | | |
| 1897 | + | |
| 1898 | + | |
1897 | 1899 | | |
1898 | 1900 | | |
1899 | 1901 | | |
| |||
0 commit comments