mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 08:27:14 +02:00
Restore global config after tests
Fix a couple more cases when caching related configs are changed. This does not fix all our problems with Gradle builds. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228735790
This commit is contained in:
parent
4866955c76
commit
f94090c415
4 changed files with 50 additions and 24 deletions
|
@ -391,9 +391,14 @@ public class DomainCreateFlowTest extends ResourceFlowTestCase<DomainCreateFlow,
|
|||
|
||||
@Test
|
||||
public void testSuccess_cachingDisabled() throws Exception {
|
||||
RegistryConfig.overrideIsEppResourceCachingEnabledForTesting(false);
|
||||
persistContactsAndHosts();
|
||||
doSuccessfulTest();
|
||||
boolean origIsCachingEnabled = RegistryConfig.isEppResourceCachingEnabled();
|
||||
try {
|
||||
RegistryConfig.overrideIsEppResourceCachingEnabledForTesting(false);
|
||||
persistContactsAndHosts();
|
||||
doSuccessfulTest();
|
||||
} finally {
|
||||
RegistryConfig.overrideIsEppResourceCachingEnabledForTesting(origIsCachingEnabled);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue