]> Cypherpunks repositories - gostls13.git/commit
runtime: deflake TestGCTestIsReachable
authorAustin Clements <austin@google.com>
Tue, 6 Apr 2021 18:55:46 +0000 (14:55 -0400)
committerAustin Clements <austin@google.com>
Tue, 6 Apr 2021 19:55:44 +0000 (19:55 +0000)
commitbcc4422ee1bdb8051a6c870cf00e837814614a0f
tree3b7c9015fd0f69f39215d39cca2fe37c50f67c36
parent1271e9a9ccfdb0906ecf69d2047ad3b470eeca02
runtime: deflake TestGCTestIsReachable

This is a simple workaround for a bug where runtime.GC() can return
before finishing a full sweep, causing gcTestIsReachable to throw. The
right thing is to fix runtime.GC(), but this should get this test
passing reliably in the meantime.

Updates #45315.

Change-Id: Iae141e6dbb26a9c2649497c1feedd4aaeaf540c7
Reviewed-on: https://go-review.googlesource.com/c/go/+/307809
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/runtime/mgc.go