mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 10:58:57 +00:00
test: Add another variant of API timeout to skip when benchmarking
This commit is contained in:
parent
e73631c5f0
commit
e187a5f5cb
@ -506,7 +506,8 @@ func isTimeout(err error) bool {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
return strings.Contains(err.Error(), "use of closed network connection") ||
|
return strings.Contains(err.Error(), "use of closed network connection") ||
|
||||||
strings.Contains(err.Error(), "request canceled while waiting")
|
strings.Contains(err.Error(), "request canceled while waiting") ||
|
||||||
|
strings.Contains(err.Error(), "operation timed out")
|
||||||
}
|
}
|
||||||
|
|
||||||
func getTestName() string {
|
func getTestName() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user