diff --git a/test/functional/terminal/channel_spec.lua b/test/functional/terminal/channel_spec.lua index 8a083330ae..1451528c45 100644 --- a/test/functional/terminal/channel_spec.lua +++ b/test/functional/terminal/channel_spec.lua @@ -140,7 +140,8 @@ it('chansend sends lines to terminal channel in proper order', function() -- On Windows this may fail if the shell hasn't fully started yet, so retry. t.retry(is_os('win') and 3 or 1, 5000, function() command([[call chansend(id, ['echo "hello"', 'echo "world"', ''])]]) - screen:expect { any = [[echo "hello".*echo "world"]], timeout = 2000 } + -- With PowerShell the command may be highlighted, so specify attr_ids = {}. + screen:expect { any = [[echo "hello".*echo "world"]], attr_ids = {}, timeout = 2000 } end) command('bdelete!') screen:expect { any = '%[No Name%]' }