Skip to content

Commit 8aa377d

Browse files
committed
Test: update assertion for timeout
1 parent 74f6358 commit 8aa377d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/test_query_api.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def success_test(test, expected_response, api_method, *args, **expected_kwargs):
1818
resp = api_method(*args)
1919

2020
# validate response is as expected
21-
test.assertEquals(resp, expected_response.text)
21+
test.assertEqual(resp, expected_response.text)
2222

2323
# validate call is made as expected
2424
expected_args = expected_kwargs.pop('expected_args')
@@ -57,7 +57,7 @@ def setUp(self):
5757
'expected_args': [self.service.get_server_url()]
5858
, 'data': '{"queryName": "' + query + '", "rows": "{id:1234}", "schemaName": "' + schema + '"}'
5959
, 'headers': {u'Content-Type': u'application/json'}
60-
, 'timeout': 30
60+
, 'timeout': 300
6161
}
6262

6363
rows = '{id:1234}'
@@ -99,7 +99,7 @@ def setUp(self):
9999
'expected_args': [self.service.get_server_url()]
100100
, 'data': '{"queryName": "' + query + '", "rows": "{id:1234}", "schemaName": "' + schema + '"}'
101101
, 'headers': {u'Content-Type': u'application/json'}
102-
, 'timeout': 30
102+
, 'timeout': 300
103103
}
104104

105105
rows = '{id:1234}'
@@ -141,7 +141,7 @@ def setUp(self):
141141
'expected_args': [self.service.get_server_url()]
142142
, 'data': '{"queryName": "' + query + '", "rows": "{id:1234}", "schemaName": "' + schema + '"}'
143143
, 'headers': {u'Content-Type': u'application/json'}
144-
, 'timeout': 30
144+
, 'timeout': 300
145145
}
146146

147147
rows = '{id:1234}'
@@ -184,7 +184,7 @@ def setUp(self):
184184
'expected_args': [self.service.get_server_url()]
185185
, 'data': {'sql': sql, "schemaName": schema}
186186
, 'headers': None
187-
, 'timeout': 30
187+
, 'timeout': 300
188188
}
189189

190190
self.args = [
@@ -225,7 +225,7 @@ def setUp(self):
225225
'expected_args': [self.service.get_server_url()]
226226
, 'data': {"schemaName": schema, "query.queryName": query}
227227
, 'headers': None
228-
, 'timeout': 30
228+
, 'timeout': 300
229229
}
230230

231231
self.args = [

0 commit comments

Comments
 (0)