File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -175,7 +175,11 @@ defmodule GenLSP.Test do
175
175
})
176
176
```
177
177
"""
178
- defmacro assert_result ( id , pattern , timeout \\ 100 ) do
178
+ defmacro assert_result (
179
+ id ,
180
+ pattern ,
181
+ timeout \\ Application . get_env ( :ex_unit , :assert_receive_timeout )
182
+ ) do
179
183
quote do
180
184
assert_receive % {
181
185
"jsonrpc" => "2.0" ,
@@ -215,7 +219,11 @@ defmodule GenLSP.Test do
215
219
})
216
220
```
217
221
"""
218
- defmacro assert_error ( id , pattern , timeout \\ 100 ) do
222
+ defmacro assert_error (
223
+ id ,
224
+ pattern ,
225
+ timeout \\ Application . get_env ( :ex_unit , :assert_receive_timeout )
226
+ ) do
219
227
quote do
220
228
assert_receive % {
221
229
"jsonrpc" => "2.0" ,
@@ -244,7 +252,11 @@ defmodule GenLSP.Test do
244
252
})
245
253
```
246
254
"""
247
- defmacro assert_notification ( method , pattern , timeout \\ 100 ) do
255
+ defmacro assert_notification (
256
+ method ,
257
+ pattern ,
258
+ timeout \\ Application . get_env ( :ex_unit , :assert_receive_timeout )
259
+ ) do
248
260
quote do
249
261
assert_receive % {
250
262
"jsonrpc" => "2.0" ,
You can’t perform that action at this time.
0 commit comments