@@ -49,12 +49,6 @@ def setUp(self):
4949 self ._proxy_user = 'admin'
5050 self ._proxy_pass = 'password'
5151
52- self ._timeout = {
53- 'timeout' : {
54- 'sock_read' : 120
55- }
56- }
57-
5852 def test_network_status (self ):
5953 get_response = 'Success'
6054 self ._init_filer (get_response = get_response )
@@ -143,7 +137,7 @@ def test_tcp_connect_success(self):
143137
144138 ret = network .Network (self ._filer ).tcp_connect (TCPService (self ._tcp_connect_address , self ._tcp_connect_port ))
145139
146- self ._filer .api .execute .assert_called_once_with ('/status/network' , 'tcpconnect' , mock .ANY , self . _timeout )
140+ self ._filer .api .execute .assert_called_once_with ('/status/network' , 'tcpconnect' , mock .ANY )
147141 self ._filer .tasks .wait .assert_called_once_with (self ._task_id )
148142
149143 expected_param = self ._get_tcp_connect_object ()
@@ -163,7 +157,7 @@ def test_tcp_connect_failure(self):
163157
164158 ret = network .Network (self ._filer ).tcp_connect (TCPService (self ._tcp_connect_address , self ._tcp_connect_port ))
165159
166- self ._filer .api .execute .assert_called_once_with ('/status/network' , 'tcpconnect' , mock .ANY , self . _timeout )
160+ self ._filer .api .execute .assert_called_once_with ('/status/network' , 'tcpconnect' , mock .ANY )
167161 self ._filer .tasks .wait .assert_called_once_with (self ._task_id )
168162
169163 expected_param = self ._get_tcp_connect_object ()
@@ -206,7 +200,7 @@ def test_tcp_connect_task_error(self):
206200
207201 ret = network .Network (self ._filer ).tcp_connect (TCPService (self ._tcp_connect_address , self ._tcp_connect_port ))
208202
209- self ._filer .api .execute .assert_called_once_with ('/status/network' , 'tcpconnect' , mock .ANY , self . _timeout )
203+ self ._filer .api .execute .assert_called_once_with ('/status/network' , 'tcpconnect' , mock .ANY )
210204 self ._filer .tasks .wait .assert_called_once_with (self ._task_id )
211205
212206 expected_param = self ._get_tcp_connect_object ()
0 commit comments