Skip to content

Fix unit test failures on dependency bump#110

Merged
julian-hj merged 1 commit intomasterfrom
fix-cache-handler-units
Oct 3, 2025
Merged

Fix unit test failures on dependency bump#110
julian-hj merged 1 commit intomasterfrom
fix-cache-handler-units

Conversation

@julian-hj
Copy link
Member

The latest version of coredns deep copies the response object before mutating it, which results in some slight discrepancies between our mock object and the value stored in the cache. In the past, the actual mock object would get mutated, so it would pass Equals testing in the units. That no longer happens, so we need to update the mock object to match the values we expect to actually get cached.

This fix should address the ci failure
here

The latest version of coredns deep copies the response object before
mutating it, which results in some slight discrepancies between our mock
object and the value stored in the cache. In the past, the actual mock
object would get mutated, so it would pass Equals testing in the units.
That no longer happens, so we need to update the mock object to
match the values we expect to actually get cached.

This fix should address the ci failure
[here](https://ci-demo.bosh-ecosystem.cf-app.com/teams/main/pipelines/bosh-dns-release/jobs/bump-deps/builds/290)
@julian-hj julian-hj merged commit ec7a2e6 into master Oct 3, 2025
19 checks passed
@ystros ystros deleted the fix-cache-handler-units branch October 3, 2025 20:22
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.

2 participants