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 @@ -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
341348class 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+
367374class WindowAutomaticRename (TmuxTestCase ):
368375
369376 yaml_config = """
You can’t perform that action at this time.
0 commit comments