Skip to content

Commit 2b04a84

Browse files
author
Sébastien Alix
committed
Fix the 'reduced_timeout' unit test
1 parent 63cc63e commit 2b04a84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_timeout.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ def setUp(self):
2020
self.user = self.oerp.login(ARGS.user, ARGS.passwd, ARGS.database)
2121

2222
def test_reduced_timeout(self):
23+
ids = self.oerp.search('ir.module.module', [])
2324
# Set the timeout
2425
self.oerp.config['timeout'] = 0.1
2526
# Execute a time consuming query: handle exception
26-
ids = self.oerp.search('ir.module.module', [])
2727
self.assertRaises(
2828
socket.timeout,
2929
self.oerp.write, 'ir.module.module', ids, {})

0 commit comments

Comments
 (0)