@@ -29,12 +29,14 @@ Describe System.Process.Vimproc
29
29
" Not sure but 'sleep' doesn't properly works in AppVeyor?
30
30
" The code below worked on Windows 10 + PowerShell
31
31
It DOES NOT throws an exception when {options.timeout} is specified
32
- let options.timeout = 100
33
- let args = s:cmd + ['sleep', '10']
32
+ " timeout 1 second = 1000 millisoconds
33
+ let options.timeout = 1
34
+ " sleep command 100 seconds wait
35
+ let args = s:cmd + ['sleep', '100']
34
36
let result = Process.execute(args, options)
35
37
" While the execution time reachs the timeout, the success is 0.
36
38
Assert Equals(result.success, 0)
37
- Assert Equals(result.status, 15)
39
+ Assert Equals(result.status, 15)
38
40
End
39
41
endif
40
42
@@ -157,8 +159,10 @@ Describe System.Process.Vimproc
157
159
Context [Unix]
158
160
Describe .execute({args}[, {options}])
159
161
It DOES NOT throws an exception when {options.timeout} is specified
160
- let options.timeout = 100
161
- let args = ['sleep', '10']
162
+ " timeout 1 second = 1000 millisoconds
163
+ let options.timeout = 1
164
+ " sleep command 100 seconds wait
165
+ let args = ['sleep', '100']
162
166
let result = Process.execute(args, options)
163
167
" While the execution time reachs the timeout, the success is 0.
164
168
Assert Equals(result.success, 0)
0 commit comments