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 delayed result snapshot #583

Merged
merged 4 commits into from
Sep 3, 2024
Merged

Fix delayed result snapshot #583

merged 4 commits into from
Sep 3, 2024

Conversation

gnawf
Copy link
Collaborator

@gnawf gnawf commented Aug 29, 2024

The test snapshots were wrong because we weren't deep cloning the result before Nadel mutated it.

Pending #579

@@ -55,7 +55,8 @@ public class DeferredFieldIsRenamedTestSnapshot : TestSnapshot() {
| "defer"
| ],
| "data": {
| "overallString": "string for the deferred renamed field"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because we didn't clone the result before Nadel mutated it, the test snapshots wrote down the final result that already had the field renamed.

felipe-gdr
felipe-gdr previously approved these changes Aug 29, 2024
@gnawf gnawf force-pushed the fix-delayed-result-snapshot branch from b524e73 to a79f60e Compare September 3, 2024 01:35
@gnawf gnawf changed the base branch from apply-transforms-to-defer-payloads to master September 3, 2024 01:35
@gnawf gnawf dismissed felipe-gdr’s stale review September 3, 2024 01:35

The base branch was changed.

@gnawf
Copy link
Collaborator Author

gnawf commented Sep 3, 2024

Hey @felipe-gdr had to push to add more fixes to tests introduced in #586

@gnawf gnawf marked this pull request as ready for review September 3, 2024 01:42
@gnawf gnawf merged commit 62cfd08 into master Sep 3, 2024
2 checks passed
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.

3 participants