Skip to content

Commit 75a78f0

Browse files
committed
modify testing
...in accordance with the prophecy.
1 parent 2079cd1 commit 75a78f0

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
@@ -266,7 +266,7 @@ def test_window_shell(self):
266266
- pane
267267
- pane
268268
window_name: editor
269-
window_shell: test_command
269+
window_shell: top
270270
"""
271271
s = self.session
272272
sconfig = kaptan.Kaptan(handler='yaml')
@@ -277,7 +277,14 @@ def test_window_shell(self):
277277

278278
for w, wconf in builder.iter_create_windows(s):
279279
if 'window_shell' in wconf:
280-
self.assertEqual(wconf['window_shell'], text_type('test_command'))
280+
self.assertEqual(wconf['window_shell'], text_type('top'))
281+
for i in range(10):
282+
self.session.server._update_windows()
283+
if w['window_name'] != 'top':
284+
break
285+
time.sleep(.2)
286+
287+
self.assertNotEqual(w.get('window_name', text_type('top')))
281288

282289

283290
class EnvironmentVariables(TmuxTestCase):
@@ -305,7 +312,7 @@ def test_environment_variables(self):
305312

306313
self.assertEqual('BAR', self.session.show_environment('FOO'))
307314
self.assertEqual('/tmp', self.session.show_environment('PATH'))
308-
315+
309316
class WindowAutomaticRename(TmuxTestCase):
310317

311318
yaml_config = """

0 commit comments

Comments
 (0)