File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff 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
283290class 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+
309316class WindowAutomaticRename (TmuxTestCase ):
310317
311318 yaml_config = """
You can’t perform that action at this time.
0 commit comments