@@ -17,7 +17,7 @@ describe('Clock', function()
17
17
table.insert (files , first_file .filename )
18
18
vim .fn .cursor (3 , 1 )
19
19
vim .cmd ([[ norm ,oxi]] )
20
- vim .wait (0 )
20
+ vim .wait (100 )
21
21
local now = Date .now ({ active = false }):to_wrapped_string ()
22
22
assert .are .same (' :LOGBOOK:' , vim .fn .getline (5 ))
23
23
assert .are .same (string.format (' CLOCK: %s' , now ), vim .fn .getline (6 ))
@@ -51,7 +51,7 @@ describe('Clock', function()
51
51
52
52
vim .fn .cursor (3 , 1 )
53
53
vim .cmd ([[ norm ,oxi]] )
54
- vim .wait (0 ) -- wait for promise to fulfill
54
+ vim .wait (100 ) -- wait for promise to fulfill
55
55
local now = Date .now ({ active = false }):to_wrapped_string ()
56
56
assert .are .same (' :LOGBOOK:' , vim .fn .getline (8 ))
57
57
assert .are .same (string.format (' CLOCK: %s' , now ), vim .fn .getline (9 ))
@@ -61,7 +61,7 @@ describe('Clock', function()
61
61
vim .fn .cursor (11 , 1 )
62
62
local new_now = Date .now ({ active = false }):to_wrapped_string ()
63
63
vim .cmd ([[ norm ,oxi]] )
64
- vim .wait (0 ) -- wait for promise to fulfill
64
+ vim .wait (100 ) -- wait for promise to fulfill
65
65
-- First clocked out
66
66
assert .are .same (' :LOGBOOK:' , vim .fn .getline (8 ))
67
67
assert .are .same (string.format (' CLOCK: %s--%s => 0:00' , now , new_now ), vim .fn .getline (9 ))
@@ -86,7 +86,7 @@ describe('Clock', function()
86
86
table.insert (files , third_file .filename )
87
87
vim .fn .cursor (3 , 1 )
88
88
vim .cmd ([[ norm ,oxi]] )
89
- vim .wait (0 ) -- wait for promise to fulfill
89
+ vim .wait (100 ) -- wait for promise to fulfill
90
90
local now = Date .now ({ active = false }):to_wrapped_string ()
91
91
assert .are .same (' :LOGBOOK:' , vim .fn .getline (5 ))
92
92
assert .are .same (string.format (' CLOCK: %s' , now ), vim .fn .getline (6 ))
@@ -115,7 +115,7 @@ describe('Clock', function()
115
115
local old_clock_line = vim .fn .getline (6 )
116
116
vim .fn .cursor (3 , 1 )
117
117
vim .cmd ([[ norm ,oxi]] )
118
- vim .wait (0 ) -- wait for promise to fulfill
118
+ vim .wait (100 ) -- wait for promise to fulfill
119
119
local now = Date .now ({ active = false }):to_wrapped_string ()
120
120
assert .are .same (' :LOGBOOK:' , vim .fn .getline (5 ))
121
121
assert .are .same (string.format (' CLOCK: %s' , now ), vim .fn .getline (6 ))
@@ -138,7 +138,7 @@ describe('Clock', function()
138
138
})
139
139
vim .fn .cursor (3 , 1 )
140
140
vim .cmd ([[ norm ,oxi]] )
141
- vim .wait (0 ) -- wait for promise to fulfill
141
+ vim .wait (100 ) -- wait for promise to fulfill
142
142
local now = Date .now ({ active = false }):to_wrapped_string ()
143
143
assert .are .same (' :LOGBOOK:' , vim .fn .getline (5 ))
144
144
assert .are .same (string.format (' CLOCK: %s' , now ), vim .fn .getline (6 ))
0 commit comments