Skip to content

Commit becb465

Browse files
NicogpTomasTurina
authored andcommitted
test: increases the time between attempts to stop the service in Windows
1 parent ec69fe5 commit becb465

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wazuh_testing/utils/services.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def control_service(action, daemon=None, debug_mode=False):
100100
else:
101101
error = command.stderr.decode()
102102
if 'The service is starting or stopping' in error:
103-
time.sleep(1)
103+
time.sleep(10)
104104
continue
105105
if action == 'stop' and 'The Wazuh service is not started.' in error:
106106
result = 0
@@ -110,7 +110,7 @@ def control_service(action, daemon=None, debug_mode=False):
110110
break
111111
else:
112112
print(f"Unexpected error when control_service failed with the following error: {error}")
113-
time.sleep(1)
113+
time.sleep(10)
114114
continue
115115
else: # Default Unix
116116
if daemon is None:

0 commit comments

Comments
 (0)