aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2022-03-02 16:36:27 -0500
committerBryan Mills <bcmills@google.com>2022-03-03 02:39:01 +0000
commiteeb9f095dc13a6beed41db0e734b6ae1e97f15d1 (patch)
tree2c047be37465055277f73b2c925a90633e7cc0ec /src/testing/testing.go
parent2e9facbdd44883221fc90b8057d0443d1a8109e9 (diff)
downloadgo-eeb9f095dc13a6beed41db0e734b6ae1e97f15d1.tar.xz
testing: include ERROR_SHARING_VIOLATION in Windows cleanup retries
Fixes #51442 Updates #50051 Change-Id: I1bfbc08c907077467fd50febbec6299a9b73af41 Reviewed-on: https://go-review.googlesource.com/c/go/+/388916 Trust: Bryan Mills <bcmills@google.com> Run-TryBot: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/testing/testing.go')
-rw-r--r--src/testing/testing.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index df4dfe4490..05d8f22aff 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -1122,7 +1122,7 @@ func removeAll(path string) error {
)
for {
err := os.RemoveAll(path)
- if !isWindowsAccessDenied(err) {
+ if !isWindowsRetryable(err) {
return err
}
if start.IsZero() {