Skip to content

Commit f2af226

Browse files
committed
#26: tests: double the runs for checking async workspace building.
1 parent 715d52b commit f2af226

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

tmuxp/testsuite/test_session.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from __future__ import absolute_import, division, print_function, with_statement
1313

1414
from random import randint
15-
from time import sleep
1615
from .. import Session, Window, Pane
1716
from ..util import tmux
1817
from .helpers import TmuxTestCase, TEST_SESSION_PREFIX

tmuxp/testsuite/test_workspacebuilder.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_split_windows(self):
177177
self.assertNotEqual(w.get('window_name'), 'man')
178178

179179
pane_path = '/var'
180-
for i in range(30):
180+
for i in range(60):
181181
p = w.attached_pane()
182182
p.server._update_panes()
183183
if p.get('pane_current_path') == pane_path:
@@ -273,7 +273,7 @@ def test_automatic_rename_option(self):
273273
self.assertNotEqual(s.get('session_name'), 'tmuxp')
274274
w = s.windows[0]
275275

276-
for i in range(30):
276+
for i in range(60):
277277
self.session.server._update_windows()
278278
if w.get('window_name') != 'man':
279279
break
@@ -284,7 +284,7 @@ def test_automatic_rename_option(self):
284284
pane_base_index = w.show_window_option('pane-base-index', g=True)
285285
w.select_pane(pane_base_index)
286286

287-
for i in range(30):
287+
for i in range(60):
288288
self.session.server._update_windows()
289289
if w.get('window_name') == 'man':
290290
break
@@ -293,7 +293,7 @@ def test_automatic_rename_option(self):
293293
self.assertEqual(w.get('window_name'), unicode('man'))
294294

295295
w.select_pane('-D')
296-
for i in range(30):
296+
for i in range(60):
297297
self.session.server._update_windows()
298298
if w['window_name'] != 'man':
299299
break
@@ -455,7 +455,7 @@ def test_pane_order(self):
455455
# at 0 since python list.
456456
pane_path = pane_paths[p_index - pane_base_index]
457457

458-
for i in range(30):
458+
for i in range(60):
459459
p.server._update_panes()
460460
if p.get('pane_current_path') == pane_path:
461461
break

0 commit comments

Comments
 (0)