File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,20 @@ def test_invalid_configuration_commands_no_dict():
81
81
assert str (exc_info .value ).find ("is not a dictionary" ) != - 1
82
82
83
83
84
+ def test_timeout_propagation ():
85
+ """
86
+ Make sure the timeouts propagate from CommandSequenceBase to CommandSequence.
87
+ """
88
+ expected_timeout = 11
89
+ expected_api_timeout = 22
90
+ cmd_seq_base = CommandSequenceBase ("foo" , [{"command" : ['foo' ]}],
91
+ api_timeout = expected_timeout ,
92
+ async_api_timeout = expected_api_timeout )
93
+ cmd_seq = CommandSequence (cmd_seq_base )
94
+ assert cmd_seq .api_timeout == expected_timeout
95
+ assert cmd_seq .async_api_timeout == expected_api_timeout
96
+
97
+
84
98
@pytest .mark .skipif (not os .path .exists ('/bin/sh' )
85
99
or not os .path .exists ('/bin/echo' ),
86
100
reason = "requires Unix" )
You can’t perform that action at this time.
0 commit comments