Skip to content

Fix parent context save bug. Change tests to use private context.#5

Merged
roanutil merged 5 commits intomainfrom
non-main-queue
Sep 2, 2022
Merged

Fix parent context save bug. Change tests to use private context.#5
roanutil merged 5 commits intomainfrom
non-main-queue

Conversation

@roanutil
Copy link
Copy Markdown
Owner

  • Fix Result.save(context:) to save parent context in performAndWait closure.
  • Change tests to use private context for repository
  • Fix testFetchSubscription to make edits in repositoryContext

@roanutil roanutil linked an issue Aug 16, 2022 that may be closed by this pull request
- Fix `Result.save(context:)` to save parent context in `performAndWait` closure.
- Change tests to use private context for repository
- testFetchSubscription is failing because the private context is not updating when viewContext is changed.
non-main-queue
non-main-queue
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Merging #5 (6cea743) into main (4d2ed9c) will decrease coverage by 0.15%.
The diff coverage is 90.90%.

@@            Coverage Diff             @@
##             main       #5      +/-   ##
==========================================
- Coverage   77.65%   77.50%   -0.16%     
==========================================
  Files          11       11              
  Lines         555      560       +5     
==========================================
+ Hits          431      434       +3     
- Misses        124      126       +2     
Impacted Files Coverage Δ
...ources/CoreDataRepository/Result+CRUDHelpers.swift 82.14% <85.71%> (-4.82%) ⬇️
...s/CoreDataRepository/CoreDataRepository+CRUD.swift 95.91% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@roanutil
Copy link
Copy Markdown
Owner Author

roanutil commented Sep 2, 2022

I've tested this PR extensively on my local computer. However, the actions runner is having a problem with it. I've created an issue at: actions/runner-images#6098 (comment).

I will work on getting a CI setup that works. For now, I think it's worth merging instead of waiting around.

@roanutil roanutil merged commit cc025d0 into main Sep 2, 2022
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.

More documentation around setting up a repo would be helpful

2 participants