-
Notifications
You must be signed in to change notification settings - Fork 202
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
Refactor: Update build.gradle and fix import order in SelJodaDateTimePropertyTest to pass Spotless check #57
Conversation
- If the developer's computer environment is not set to English, running Unit Tests may result in errors.
…opertyTest - Adjusted the order of imports to comply with Spotless formatting rules. - Ran `./gradlew :netflix-sel:spotlessApply` to automatically fix format violations.
build.gradle
Outdated
@@ -39,7 +39,7 @@ allprojects { | |||
} | |||
|
|||
test { | |||
jvmArgs += ["-Djava.security.manager=allow"] | |||
jvmArgs += ["-Djava.security.manager=allow", "-Duser.language=en", "-Duser.country=US"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wondering if country is required?
If your application works correctly without -Duser.country=US, then specifying the country is not mandatory. However, if your application relies on specific locale settings (such as date and currency formats), it is better to explicitly specify the country. To ensure consistent behavior, it is advisable to set both the language and the country. |
@HankGuo93 can you remove the change in test jvmArgs from this PR and I can merge the other change about the |
- Removed "-Duser.language=en" and "-Duser.country=US"
I've removed the changes to the test JVM arguments. The PR now only includes the import changes. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. thanks.
Pull Request type
./gradlew build --write-locks
to refresh dependencies)NOTE: Please remember to run
./gradlew spotlessApply
to fix any format violations.Changes in this PR
chore: Update build.gradle
fix: Correct import order to pass Spotless check in SelJodaDateTimePropertyTest
./gradlew :netflix-sel:spotlessApply
to automatically fix format violations.