Skip to content

Commit e914508

Browse files
committed
modify testing
...in accordance with the prophecy.
1 parent 967e25e commit e914508

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tmuxp/testsuite/workspacebuilder.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ def test_window_shell(self):
324324
- pane
325325
- pane
326326
window_name: editor
327-
window_shell: test_command
327+
window_shell: top
328328
"""
329329
s = self.session
330330
sconfig = kaptan.Kaptan(handler='yaml')
@@ -335,7 +335,14 @@ def test_window_shell(self):
335335

336336
for w, wconf in builder.iter_create_windows(s):
337337
if 'window_shell' in wconf:
338-
self.assertEqual(wconf['window_shell'], text_type('test_command'))
338+
self.assertEqual(wconf['window_shell'], text_type('top'))
339+
for i in range(10):
340+
self.session.server._update_windows()
341+
if w['window_name'] != 'top':
342+
break
343+
time.sleep(.2)
344+
345+
self.assertNotEqual(w.get('window_name', text_type('top')))
339346

340347

341348
class EnvironmentVariables(TmuxTestCase):
@@ -363,7 +370,7 @@ def test_environment_variables(self):
363370

364371
self.assertEqual('BAR', self.session.show_environment('FOO'))
365372
self.assertEqual('/tmp', self.session.show_environment('PATH'))
366-
373+
367374
class WindowAutomaticRename(TmuxTestCase):
368375

369376
yaml_config = """

0 commit comments

Comments
 (0)