Reduce expire time to 1800, to reduce changes of test failing

This commit is contained in:
Arik Fraimovich 2014-03-12 13:41:42 +02:00
parent 3451deee03
commit 0b0d2bcdfc

View File

@ -339,7 +339,7 @@ class CsvQueryResultAPITest(BaseTestCase, AuthenticationTestMixin):
def test_returns_200_for_correct_signature(self): def test_returns_200_for_correct_signature(self):
with app.test_client() as c: with app.test_client() as c:
expires = time.time()+3600 expires = time.time()+1800
rv = c.get('/api/queries/{0}/results/{1}.csv'.format(self.query_result.query.id, self.query_result.id), query_string={'signature': self.signature(expires), 'expires': expires}) rv = c.get('/api/queries/{0}/results/{1}.csv'.format(self.query_result.query.id, self.query_result.id), query_string={'signature': self.signature(expires), 'expires': expires})
self.assertEquals(rv.status_code, 200) self.assertEquals(rv.status_code, 200)