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

fix(windows): fixing tests on windows #752

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ggodik
Copy link

@ggodik ggodik commented Apr 4, 2022

Found a few windows specific unit test issues

  • config.TestReadFromFile breaks because windows reads in carriage returns and the hardcoded string does not have these. Fixed by making test content on the fly.
  • util.GetLockName failes because the expected output does not contain a file with .exe extension. Fixed by removing .exe on Windows
  • moved magic file length constant 1000 to ConfigMaxSize

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.

None yet

2 participants