mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
replaced sleep with a changed mtime for the test file
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
local helpers = require('test.functional.helpers')(after_each)
|
local helpers = require('test.functional.helpers')(after_each)
|
||||||
local thelpers = require('test.functional.terminal.helpers')
|
local thelpers = require('test.functional.terminal.helpers')
|
||||||
|
local lfs = require('lfs')
|
||||||
local clear = helpers.clear
|
local clear = helpers.clear
|
||||||
local retry = helpers.retry
|
local retry = helpers.retry
|
||||||
local nvim_prog = helpers.nvim_prog
|
local nvim_prog = helpers.nvim_prog
|
||||||
@@ -27,6 +28,7 @@ describe('autoread TUI FocusGained/FocusLost', function()
|
|||||||
]]
|
]]
|
||||||
|
|
||||||
helpers.write_file(path, '')
|
helpers.write_file(path, '')
|
||||||
|
lfs.touch(path, os.time() - 10)
|
||||||
feed_command('edit '..path)
|
feed_command('edit '..path)
|
||||||
retry(2, 3 * screen.timeout, function()
|
retry(2, 3 * screen.timeout, function()
|
||||||
feed_data('\027[O')
|
feed_data('\027[O')
|
||||||
@@ -42,7 +44,6 @@ describe('autoread TUI FocusGained/FocusLost', function()
|
|||||||
{3:-- TERMINAL --} |
|
{3:-- TERMINAL --} |
|
||||||
]]}
|
]]}
|
||||||
|
|
||||||
helpers.sleep(2000)
|
|
||||||
helpers.write_file(path, expected_addition)
|
helpers.write_file(path, expected_addition)
|
||||||
|
|
||||||
retry(2, 3 * screen.timeout, function()
|
retry(2, 3 * screen.timeout, function()
|
||||||
|
|||||||
Reference in New Issue
Block a user