Skip to content

Commit 146ed7b

Browse files
committed
sleep a bit to let the finalizers run.
1 parent fd2a552 commit 146ed7b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

openssl/openssl_test.go

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ func TestMain(m *testing.M) {
2727
for i := 0; i < 5; i++ {
2828
// Run GC a few times to avoid false positives in leak detection.
2929
runtime.GC()
30+
// Sleep a bit to let the finalizers run.
31+
time.Sleep(10 * time.Millisecond)
3032
}
3133
openssl.CheckLeaks()
3234
os.Exit(status)

0 commit comments

Comments
 (0)