...
Source file
src/testing/testing_windows.go
Documentation: testing
1
2
3
4
5
6
7 package testing
8
9 import (
10 "errors"
11 "internal/syscall/windows"
12 "syscall"
13 )
14
15
16
17 func isWindowsRetryable(err error) bool {
18 for {
19 unwrapped := errors.Unwrap(err)
20 if unwrapped == nil {
21 break
22 }
23 err = unwrapped
24 }
25 if err == syscall.ERROR_ACCESS_DENIED {
26 return true
27 }
28 if err == windows.ERROR_SHARING_VIOLATION {
29 return true
30 }
31 return false
32 }
33
View as plain text