Fix testTemplateBuilderWithLoginUserSpecified to clean up credentials added to CredentialStoreModule.BACKING

This commit is contained in:
Aled Sage 2011-12-11 22:07:32 +00:00
parent d32bbc18c4
commit 9a725ba93c
1 changed files with 4 additions and 0 deletions

View File

@ -283,6 +283,10 @@ public abstract class BaseTemplateBuilderLiveTest extends BaseVersionedServiceLi
} finally {
if (context != null)
context.close();
// Need to clear persisted credentials; otherwise next time a ComputeServiceContext is created
// then it will have these "foo" credentials!
context.credentialStore().clear();
}
}