We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd2a552 commit 146ed7bCopy full SHA for 146ed7b
openssl/openssl_test.go
@@ -27,6 +27,8 @@ func TestMain(m *testing.M) {
27
for i := 0; i < 5; i++ {
28
// Run GC a few times to avoid false positives in leak detection.
29
runtime.GC()
30
+ // Sleep a bit to let the finalizers run.
31
+ time.Sleep(10 * time.Millisecond)
32
}
33
openssl.CheckLeaks()
34
os.Exit(status)
0 commit comments