-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: add trimming for TestSaveConfig config file assertion (#317)
Summary: Pull Request resolved: #317 Save(...) calls .SaveTo(...) which for some reasons behave differently on different systems. For example, when testing internally, it adds whitespace between the fields such that all "=" are aligned vertically. However when tests are executed in another environment (e.g. local with go test), it doesn't have this behaviour. This diff removes the usage of .SaveTo(...) from the ini library and just do a normal bytes write to the filesystem for saving config. Reviewed By: leoleovich Differential Revision: D52625023 fbshipit-source-id: 004ef4975789900c23067489f1ece394ee08cb5b
- Loading branch information
1 parent
bbeecec
commit d1456d1
Showing
2 changed files
with
154 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters