From 2844b3021c6b035889a14dec6024598018b5cd65 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Wed, 24 May 2017 18:11:31 +0200 Subject: [PATCH] library: support sub-second precision for 'wait' property For testing it is useful to be able to configure very short 'wait' times. Otherwise, the minimally configuable timeout is 1 second. --- library/network_connections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/network_connections.py b/library/network_connections.py index c430049..9d66ca4 100755 --- a/library/network_connections.py +++ b/library/network_connections.py @@ -655,7 +655,7 @@ class ArgValidator_DictConnection(ArgValidatorDict): nested = [ ArgValidatorStr ('name'), ArgValidatorStr ('state', enum_values = ArgValidator_DictConnection.VALID_STATES), - ArgValidatorNum ('wait', val_min = 0, val_max = 3600), + ArgValidatorNum ('wait', val_min = 0, val_max = 3600, numeric_type = float), ArgValidatorStr ('type', enum_values = ArgValidator_DictConnection.VALID_TYPES), ArgValidatorBool('autoconnect', default_value = True), ArgValidatorStr ('slave_type', enum_values = ArgValidator_DictConnection.VALID_SLAVE_TYPES),