Skip to content

fix(windows): fixing tests on windows#752

Open
ggodik wants to merge 2 commits intoRichardKnop:masterfrom
ggodik:gg/win-fix
Open

fix(windows): fixing tests on windows#752
ggodik wants to merge 2 commits intoRichardKnop:masterfrom
ggodik:gg/win-fix

Conversation

@ggodik
Copy link
Copy Markdown

@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.

2 participants