test: Add another variant of API timeout to skip when benchmarking

This commit is contained in:
Jakob Borg 2018-05-30 13:23:52 +02:00
parent e73631c5f0
commit e187a5f5cb
1 changed files with 2 additions and 1 deletions

View File

@ -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 {