@@ -324,35 +324,38 @@ defmodule Sentry.Config do
324324      `Sentry.FinchClient`. 
325325      """ 
326326    ] , 
327-     hackney_opts:  [ 
328-       type:  :keyword_list , 
329-       deprecated:  "Use Finch instead as default client." , 
330-       default:  [ pool:  :sentry_pool ] , 
331-       doc:  """ 
332-       Options to be passed to `hackney`. Only 
333-       applied if `:client` is set to `Sentry.HackneyClient`. 
334-       """ 
335-     ] , 
336-     hackney_pool_timeout:  [ 
337-       type:  :timeout , 
338-       deprecated:  "Use Finch instead as default client." , 
339-       default:  5000 , 
340-       doc:  """ 
341-       The maximum time to wait for a 
342-       connection to become available. Only applied if `:client` is set to 
343-       `Sentry.HackneyClient`. 
344-       """ 
345-     ] , 
346-     hackney_pool_max_connections:  [ 
347-       type:  :pos_integer , 
348-       deprecated:  "Use Finch instead as default client." , 
349-       default:  50 , 
350-       doc:  """ 
351-       The maximum number of 
352-       connections to keep in the pool. Only applied if `:client` is set to 
353-       `Sentry.HackneyClient`. 
354-       """ 
355-     ] 
327+     hackney_opts: 
328+        [ 
329+         type:  :keyword_list , 
330+         default:  [ pool:  :sentry_pool ] , 
331+         doc:  """ 
332+         Options to be passed to `hackney`. Only 
333+         applied if `:client` is set to `Sentry.HackneyClient`. 
334+         """ 
335+       ]  ++ 
336+         if ( Mix . env ( )  ==  :test ,  do:  [ ] ,  else:  [ deprecated:  "Use Finch instead as default client." ] ) , 
337+     hackney_pool_timeout: 
338+        [ 
339+         type:  :timeout , 
340+         default:  5000 , 
341+         doc:  """ 
342+         The maximum time to wait for a 
343+         connection to become available. Only applied if `:client` is set to 
344+         `Sentry.HackneyClient`. 
345+         """ 
346+       ]  ++ 
347+         if ( Mix . env ( )  ==  :test ,  do:  [ ] ,  else:  [ deprecated:  "Use Finch instead as default client." ] ) , 
348+     hackney_pool_max_connections: 
349+        [ 
350+         type:  :pos_integer , 
351+         default:  50 , 
352+         doc:  """ 
353+         The maximum number of 
354+         connections to keep in the pool. Only applied if `:client` is set to 
355+         `Sentry.HackneyClient`. 
356+         """ 
357+       ]  ++ 
358+         if ( Mix . env ( )  ==  :test ,  do:  [ ] ,  else:  [ deprecated:  "Use Finch instead as default client." ] ) 
356359  ] 
357360
358361  source_code_context_opts_schema  =  [ 
0 commit comments