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

Fixed unit-test that produced different test results on mac and linux #43

Merged
merged 1 commit into from
Sep 17, 2022

Conversation

nao1215
Copy link
Owner

@nao1215 nao1215 commented Sep 17, 2022

Fix this problem

In PR #42, unit tests for write permissions were added. However, this PR may occur error.
This error occurs because the error message for no write permission is different between macOS and Linux. Error messages returned by the code in the layer close to the system call are different between macOS and Linux.

Therefore, unit test did not check the error message. Instead, unit test check for the existence of the file (it's /.config).

@codecov
Copy link

codecov bot commented Sep 17, 2022

Codecov Report

Merging #43 (260a2de) into main (514386f) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #43   +/-   ##
=======================================
  Coverage   84.40%   84.40%           
=======================================
  Files          10       10           
  Lines         295      295           
=======================================
  Hits          249      249           
  Misses         33       33           
  Partials       13       13           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@nao1215 nao1215 merged commit 9e3fc5e into main Sep 17, 2022
@nao1215 nao1215 deleted the fix-broken-unit-test branch September 18, 2022 16:57
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.

1 participant