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

Quickfix incorrect tests #290

Merged
merged 1 commit into from
Jun 7, 2024
Merged

Quickfix incorrect tests #290

merged 1 commit into from
Jun 7, 2024

Conversation

trzysiek
Copy link
Member

@trzysiek trzysiek commented Jun 7, 2024

It's a bit concerning that these tests passed most of the time, even though we expected 1 query in mock, but actually sent 2 to the DB...
Maybe it's introduced by this newly added mock.MatchExpectationsInOrder(false)? Maybe sqlmock's bug? Maybe my bug?
I'll try to inspect that for a bit, but it seems to solve the flakiness + results should now be correct

@trzysiek trzysiek marked this pull request as ready for review June 7, 2024 16:12
@trzysiek trzysiek requested a review from a team as a code owner June 7, 2024 16:12
@trzysiek trzysiek enabled auto-merge (squash) June 7, 2024 16:18
@pdelewski
Copy link
Contributor

hm, maybe it would be good to add comment about this strange behaviour

@trzysiek trzysiek merged commit cbc7cc8 into main Jun 7, 2024
4 checks passed
@trzysiek trzysiek deleted the quickfix-e2e-2 branch June 7, 2024 16:19
@trzysiek
Copy link
Member Author

trzysiek commented Jun 7, 2024

Sure, great idea, sorry that I didn't do that already.
I'll add a comment tomorrow if I won't manage to fix that.

pdelewski pushed a commit that referenced this pull request Jun 9, 2024
It's a bit concerning that these tests passed most of the time, even
though we expected 1 query in mock, but actually sent 2.
Maybe it's introduced by this newly added
`mock.MatchExpectationsInOrder(false)`? Maybe sqlmock's bug? Maybe my
bug?
I'll try to inspect that for a bit, but it seems to solve the flakiness
+ results should **now** be correct
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