Skip to content

Commit a8632a2

Browse files
chrisburrweb-flow
authored andcommitted
sweep: #5782 Fix mocking of psutil
1 parent b45e28e commit a8632a2

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/DIRAC/FrameworkSystem/Agent/test/Test_ComponentSupervisionAgent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def test_restartInstance(self):
444444
psMock = self.getPSMock()
445445
psMock.Process = MagicMock("RaisingProc")
446446
psMock.Error = psutil.Error
447-
psMock.Process.side_effect = psutil.Error()
447+
psMock.Process.side_effect = psutil.AccessDenied()
448448
with patch("DIRAC.FrameworkSystem.Agent.ComponentSupervisionAgent.psutil", new=psMock):
449449
res = self.restartAgent.restartInstance(12345, "agentX", True)
450450
self.assertFalse(res["OK"])

tests/Jenkins/dirac_ci.sh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,8 @@ fullInstallDIRAC() {
253253
echo 'Content of etc/Production.cfg:'
254254
cat "${SERVERINSTALLDIR}/etc/Production.cfg"
255255

256-
echo "==> Restarting Framework ProxyManager"
257-
dirac-restart-component Framework ProxyManager ${DEBUG}
258-
259-
echo "==> Restarting Framework ComponentMonitoring"
260-
dirac-restart-component Framework ComponentMonitoring ${DEBUG}
256+
echo "==> Restarting Framework services"
257+
dirac-restart-component Framework '*' ${DEBUG}
261258

262259
#Now all the rest
263260

0 commit comments

Comments
 (0)