Skip to content

Commit f1defe3

Browse files
committed
fix(tests): increase receive_timeout for async test stability
1 parent f2ce9bb commit f1defe3

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/support/case.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ defmodule Sentry.Case do
1111
# resolve_from_active_scopes won't leak config from concurrent async tests.
1212
Sentry.Test.Config.register()
1313

14+
# Override the global receive_timeout (50ms in config.exs) with a value
15+
# that won't flake under async load.
16+
Sentry.Test.Config.put(finch_request_opts: [receive_timeout: 2000])
17+
1418
# Start a fresh RateLimiter for each test with unique names for isolation.
1519
setup_rate_limiter()
1620

0 commit comments

Comments
 (0)