Skip to content

Commit 1a03b8e

Browse files
authored
Fix: resize default execution context, not current [fixup #16444] (#16471)
We shall resize the `default` execution context (parallel), not the `current` context (may be an isolated context).
1 parent ed80ea3 commit 1a03b8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/spec.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ module Spec
132132

133133
{% if flag?(:execution_context) %}
134134
if count = ENV["CRYSTAL_WORKERS"]?.try(&.to_i?)
135-
Fiber::ExecutionContext.current.resize(count)
135+
Fiber::ExecutionContext.default.resize(count)
136136
end
137137
{% end %}
138138

0 commit comments

Comments
 (0)