Closed crevillo closed 3 years ago
I'm gonna to close this. Looks problem is not the go-sqlmock but gorm or something else. i tried the endpoint that uses these repository several times and i can see that in that second query the values passed to the IN
part differ from one execution to another. sorry about the noise.
hello. probably not an issue and this is something i'm doing wrong, but not sure where to ask for support.
i'm working with gorm and one of my repos has this method
i'm writing a test for that method. test looks like
this tests looks passing if i try
go test -v ./repository
but, i I repeat the operation several times, i have fails and passes. I don't know where the problem could be. the only thing i can see is that when the test fails, the output saysmeaning that for some reason, for the second query i'm testing there, the params seem to be switched when the test fail. anyone have seem something like this? Thanks.