aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2018-05-30 13:23:52 +0200
committerJakob Borg <jakob@kastelo.net>2018-05-30 13:23:52 +0200
commite187a5f5cbf25ae72b2f648b1f92391104af7347 (patch)
tree2903aa1650fabe7aeb5b501ad4f97506f82f4e3c /test
parente73631c5f0664da703b2b902adbefa6878cf65fb (diff)
downloadsyncthing-e187a5f5cbf25ae72b2f648b1f92391104af7347.tar.gz
syncthing-e187a5f5cbf25ae72b2f648b1f92391104af7347.zip
test: Add another variant of API timeout to skip when benchmarking
Diffstat (limited to 'test')
-rw-r--r--test/util.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/util.go b/test/util.go
index 4dd00806f..40fdc6566 100644
--- a/test/util.go
+++ b/test/util.go
@@ -506,7 +506,8 @@ func isTimeout(err error) bool {
return false
}
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 {