From 9be92ad0c114d856f4b9388c7d171f6e2e5ad13b Mon Sep 17 00:00:00 2001 From: Federico Stagni Date: Tue, 13 Aug 2024 14:39:20 +0200 Subject: [PATCH] fix: the test can take a fraction of a second --- .../WorkloadManagementSystem/JobWrapper/test/Test_JobWrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DIRAC/WorkloadManagementSystem/JobWrapper/test/Test_JobWrapper.py b/src/DIRAC/WorkloadManagementSystem/JobWrapper/test/Test_JobWrapper.py index 4f292797a4f..5fbe5faa0c9 100644 --- a/src/DIRAC/WorkloadManagementSystem/JobWrapper/test/Test_JobWrapper.py +++ b/src/DIRAC/WorkloadManagementSystem/JobWrapper/test/Test_JobWrapper.py @@ -301,7 +301,7 @@ def test_processQuickExecutionNoWatchdog(mocker): assert result["Value"]["payloadStatus"] == 0 assert result["Value"]["payloadOutput"] == "hello" assert not result["Value"]["payloadExecutorError"] - assert result["Value"]["cpuTimeConsumed"][0] == 0.0 + assert result["Value"]["cpuTimeConsumed"][0] >= 0.0 assert not result["Value"]["watchdogError"] assert not result["Value"]["watchdogStats"]