mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-10-13 11:00:52 -04:00
Remove checks for leaking flushDaemon
This commit is contained in:
parent
d83bc8727b
commit
7614c53142
9 changed files with 4 additions and 25 deletions
|
@ -135,8 +135,6 @@ func TestMain(t *testing.T) {
|
|||
defer goleak.VerifyNone(t,
|
||||
// https://github.com/census-instrumentation/opencensus-go/issues/1262
|
||||
goleak.IgnoreTopFunction("go.opencensus.io/stats/view.(*worker).start"),
|
||||
// https://github.com/kubernetes/klog/issues/282, https://github.com/kubernetes/klog/issues/188
|
||||
goleak.IgnoreTopFunction("k8s.io/klog/v2.(*loggingT).flushDaemon"),
|
||||
)
|
||||
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
|
@ -296,7 +294,7 @@ func startCoordinator(ctx context.Context, coordinatorAddr string, ips []string)
|
|||
func createTempDir() error {
|
||||
if err := os.RemoveAll(localLogDirectory); err != nil && !os.IsNotExist(err) {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return os.MkdirAll(localLogDirectory, 0o755)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue