I could prepare a PR with these changes, the problem is: some dependencies (like linter) are a bit out of date and would need to be updated. Without it - CI would just fail, it fails without any of my changes on raw fork of Thiht/smockermaster branch, see https://github.com/SuddenGunter/smocker/actions/runs/4519253233.
If you ok with me preparing a PR with this fix + some dependencies being updated - please let me know
mock.State.TimesCount property is being modified without any synchronization in these two places:
This can result in some updates being lost, here is the test to verify it (it consistently fails on my machine):
It could be easily fixed by replacing TimesCount int type with something like atomic.Uint64. Required patch:
Now the test doesn't fail.
I could prepare a PR with these changes, the problem is: some dependencies (like linter) are a bit out of date and would need to be updated. Without it - CI would just fail, it fails without any of my changes on raw fork of
Thiht/smocker
master
branch, see https://github.com/SuddenGunter/smocker/actions/runs/4519253233.If you ok with me preparing a PR with this fix + some dependencies being updated - please let me know