Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix async behaviour with patch contexts #91

Merged
merged 2 commits into from
Oct 7, 2021
Merged

Conversation

omus
Copy link
Member

@omus omus commented Oct 6, 2021

Fixes: #89

test/async.jl Show resolved Hide resolved
Comment on lines -142 to -143
const PATCH_ENV = Ref{PatchEnv}(PatchEnv())
set_active_env(pe::PatchEnv) = (PATCH_ENV[] = pe)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be the only changes that could cause any breakage and both of these are considered internal

@codecov
Copy link

codecov bot commented Oct 6, 2021

Codecov Report

Merging #91 (d9d008d) into master (9fd8321) will decrease coverage by 0.35%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #91      +/-   ##
==========================================
- Coverage   84.09%   83.73%   -0.36%     
==========================================
  Files           6        6              
  Lines         132      123       -9     
==========================================
- Hits          111      103       -8     
+ Misses         21       20       -1     
Impacted Files Coverage Δ
src/Mocking.jl 45.45% <ø> (ø)
src/mock.jl 81.25% <100.00%> (+2.46%) ⬆️
src/patch.jl 100.00% <100.00%> (ø)
src/expr.jl 100.00% <0.00%> (ø)
src/dispatch.jl 100.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9fd8321...d9d008d. Read the comment docs.

@omus omus merged commit 4572de4 into master Oct 7, 2021
@omus omus deleted the cv/contextvariables branch October 7, 2021 03:26
@omus omus mentioned this pull request Oct 14, 2021
omus added a commit that referenced this pull request Oct 14, 2021
@oxinabox oxinabox restored the cv/contextvariables branch February 26, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Asynchronous tasks can accidentally call patched functions
1 participant