From 23c96974db43ad745389c0129eabc0c0c6c8b93d Mon Sep 17 00:00:00 2001 From: Ramon Nou Date: Mon, 31 Jan 2022 12:23:16 +0100 Subject: [PATCH] Added pause (1 sec) between log checks in tests --- tests/integration/harness/gkfs.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/integration/harness/gkfs.py b/tests/integration/harness/gkfs.py index fd55f160f..c9ce5c04c 100644 --- a/tests/integration/harness/gkfs.py +++ b/tests/integration/harness/gkfs.py @@ -1,6 +1,6 @@ ################################################################################ -# Copyright 2018-2021, Barcelona Supercomputing Center (BSC), Spain # -# Copyright 2015-2021, Johannes Gutenberg Universitaet Mainz, Germany # +# Copyright 2018-2022, Barcelona Supercomputing Center (BSC), Spain # +# Copyright 2015-2022, Johannes Gutenberg Universitaet Mainz, Germany # # # # This software was partially supported by the # # EC H2020 funded project NEXTGenIO (Project ID: 671951, www.nextgenio.eu). # @@ -27,7 +27,7 @@ ################################################################################ import os, sh, sys, re, pytest, signal -import random, socket, netifaces +import random, socket, netifaces, time from pathlib import Path from itertools import islice from time import perf_counter @@ -323,7 +323,7 @@ class Daemon: # ... or it might just be lazy. let's give it some more time logger.debug(f"daemon {pid} found, retrying...") - + time.sleep(1) raise RuntimeError("initialization timeout exceeded") def shutdown(self): @@ -792,7 +792,7 @@ class FwdDaemon: # ... or it might just be lazy. let's give it some more time logger.debug(f"daemon {pid} found, retrying...") - + time.sleep(1) raise RuntimeError("initialization timeout exceeded") def shutdown(self): -- GitLab