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
Test unexpectedly failing after v7.2.0 release #2064
Comments
Thank you for a generally great bug report. It has one major deficit, though: I cannot run your example for verification or tracking down the bug! It's not runnable on its own, and without a way of reproducing, it's hard to fix this. Could you make a minimal candidate for reproduction? You don't have to replicate the entire original example, more like a simplification like If we had known this was breaking, we would of course have upped the major version, so a regression test would be great! P.S. Seems like |
@fatso83 Let me see how I can get an isolated, runnable example for reproduction |
Any updates? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@mantoni Didn't you report experiencing something like this happening in one of your projects? |
Sorry for the lack of updates, I am no longer associated with the project that contained the issue. If anyone else can is experiencing the same issue, it would be great if they could provide an example for repro |
@fatso83 I don‘t recall running into the same issue. I have upgraded to latest Sinon in a few projects without any issues. |
Closing as cannot reproduce |
Sorry for reviving this issue from the dead, but I'm running into the same problem. The code below is simplified for illustration purposes. In my application I have this class
and I use it later in a Koa controller function like this
And in my
I tested this with sinon 7.1.1 (which uses "2.1.3" of I'm on Node 14.5.3, but this also happens on Node 12.20.0. I compared the Does anyone have a good idea why this happens? Or has anybody a good idea on how to work around this? Kind regards, |
As long as we have no reproducible case to verify this, we cannot justify spending our free hours looking into this, I am afraid. I would have nothing to look for and nothing to verify that I was right. I do love fixing bugs, though, so if you can spend some time in trying to make something I can run, do so! RunKit is a great service for doing so: https://runkit.com/fatso83/sinon-issue-reproducible-bug-template |
Hi @fatso83, Thanks for taking your time to look into it. I did as you asked me to and created a runkit demo that shows the bug. Just comment/uncomment the different https://runkit.com/danielkg/sinon-issue-reproducible-bug-template I post the code here as well in case runkit doesn't work for whatever reason.
Please have another look when you have the time. Thank you. Kind regards, |
This was a hard one. Not totally sure what is going on, but it obviously do not think the two objects are the same. The breaking changes in Samsam v3 are summarised here, I believe: sinonjs/samsam@07832fb A good handful of potential suspects. |
Describe the bug
Upgrading Sinon to latest v7 release causes some unexpected failures. The only relevant change I was able to identify was this PR: #1955 - Replacing
deep-equal.js
withsamsam.deepEqual
.The tests pass on all versions up until 7.2.0, reverting to 7.1.1 (one release back) does not cause any issues and all tests pass.
Error Observed:
Test Producing Error:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Test should pass
Screenshots
If applicable, add screenshots to help explain your problem.
Context (please complete the following information):
Please let me know if I can supply more information about this.
The text was updated successfully, but these errors were encountered: