Skip to content

Commit 5336397

Browse files
committed
Fix: device-specific wait time takes precedence in validation tests
1 parent 48619d7 commit 5336397

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

netsim/cli/validate.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,10 @@ def extend_device_wait_time(v_entry: Box, topology: Box) -> None:
246246
log.warning(
247247
text=f'{d_path} is not a dictionary, ignoring')
248248
continue
249-
if 'wait' in v_params and v_params.wait > v_entry.get('wait',0):
249+
v_wait = v_entry.get('wait',0) # Get the test wait time
250+
if not isinstance(v_wait,int): # Always override symbolic wait times with device-specific times
251+
v_wait = 0
252+
if 'wait' in v_params and v_params.wait > v_wait:
250253
if log.VERBOSE:
251254
print(f'Extending wait time for test {v_entry.name} to {v_params.wait} (device {ndata.device})')
252255
v_entry.wait = v_params.wait

0 commit comments

Comments
 (0)