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.
This commit is contained in:
Thomas Haller 2017-05-24 18:11:31 +02:00
parent 948d36fa42
commit 2844b3021c

View file

@ -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),