mirror of
https://github.com/google/nomulus.git
synced 2025-08-30 04:53:16 +02:00
We found that some webdriver tests failed because RegistryEnvironment was set to 'production' by other test and was carried over to the webdriver test, and it was nontrivial to fix them because the instance of RegistryEnvironment was injected into the testing web server. Also, to eliminate this problem from potential victims, we stopped provisioning RegistryEnvironment from Dagger. Instead, we just use RegistryEnvironment.get() function to get the instance, which indeed retrives the value from system property every time. If any test case needs to run the test with other environment, it can just simply use the existing SystemPropertyRule and RegistryEnvironment.${ENV}.setup to change it. |
||
---|---|---|
.. | ||
gradle/dependency-locks | ||
src | ||
build.gradle |