diff options
author | BK1603 <chouhan.shreyansh2702@gmail.com> | 2020-07-02 23:56:12 +0530 |
---|---|---|
committer | BK1603 <chouhan.shreyansh2702@gmail.com> | 2020-07-02 23:56:12 +0530 |
commit | a2370a5df056c4c92a8d3dee27a543941c3836ea (patch) | |
tree | 9df3cd78bbbe47739c58ed6978a7cfe09cc37dc5 | |
parent | 4da0530b004cdc156b67566347ecb3a6c6e3929a (diff) | |
download | rneovim-a2370a5df056c4c92a8d3dee27a543941c3836ea.tar.gz rneovim-a2370a5df056c4c92a8d3dee27a543941c3836ea.tar.bz2 rneovim-a2370a5df056c4c92a8d3dee27a543941c3836ea.zip |
replaced sleep with a changed mtime for the test file
-rw-r--r-- | test/functional/autoread/focus_spec.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/functional/autoread/focus_spec.lua b/test/functional/autoread/focus_spec.lua index be1533b828..0373f4a224 100644 --- a/test/functional/autoread/focus_spec.lua +++ b/test/functional/autoread/focus_spec.lua @@ -1,5 +1,6 @@ local helpers = require('test.functional.helpers')(after_each) local thelpers = require('test.functional.terminal.helpers') +local lfs = require('lfs') local clear = helpers.clear local retry = helpers.retry local nvim_prog = helpers.nvim_prog @@ -27,6 +28,7 @@ describe('autoread TUI FocusGained/FocusLost', function() ]] helpers.write_file(path, '') + lfs.touch(path, os.time() - 10) feed_command('edit '..path) retry(2, 3 * screen.timeout, function() feed_data('\027[O') @@ -42,7 +44,6 @@ describe('autoread TUI FocusGained/FocusLost', function() {3:-- TERMINAL --} | ]]} - helpers.sleep(2000) helpers.write_file(path, expected_addition) retry(2, 3 * screen.timeout, function() |