From d7f244180e84e4fd0fe7cd34298c8082bba14069 Mon Sep 17 00:00:00 2001 From: Clyybber Date: Sat, 5 Dec 2020 18:41:08 +0100 Subject: [PATCH] Retry commands in testament again (#16262) --- testament/categories.nim | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/testament/categories.nim b/testament/categories.nim index c48d611b124fd..c894bc9f99647 100644 --- a/testament/categories.nim +++ b/testament/categories.nim @@ -482,6 +482,17 @@ proc makeSupTest(test, options: string, cat: Category): TTest = result.options = options result.startTime = epochTime() +const maxRetries = 3 +template retryCommand(call): untyped = + var res: typeof(call) + var backoff = 1 + for i in 0..