##// END OF EJS Templates
wrap db before host dir is gone in new test (v2)
Aleksey Bogdanov -
Show More
@@ -242,6 +242,7 b' def test_get_tail_session_awareness():'
242 get_source = lambda x: x[2]
242 get_source = lambda x: x[2]
243 hm1 = None
243 hm1 = None
244 hm2 = None
244 hm2 = None
245 ha = None
245 try:
246 try:
246 # hm1 creates a new session and adds history entries,
247 # hm1 creates a new session and adds history entries,
247 # ha catches up
248 # ha catches up
@@ -298,8 +299,9 b' def test_get_tail_session_awareness():'
298 finally:
299 finally:
299 if hm1:
300 if hm1:
300 hm1.save_thread.stop()
301 hm1.save_thread.stop()
302 hm1.db.close()
301 if hm2:
303 if hm2:
302 hm2.save_thread.stop()
304 hm2.save_thread.stop()
303 hm = hm1 or hm2
305 hm2.db.close()
304 if hm:
306 if ha:
305 hm.db.close()
307 ha.db.close()
General Comments 0
You need to be logged in to leave comments. Login now