From 9a725ba93c21cb3ffd19f9dcbc69ea5f0625f669 Mon Sep 17 00:00:00 2001 From: Aled Sage Date: Sun, 11 Dec 2011 22:07:32 +0000 Subject: [PATCH] Fix testTemplateBuilderWithLoginUserSpecified to clean up credentials added to CredentialStoreModule.BACKING --- .../java/org/jclouds/compute/BaseTemplateBuilderLiveTest.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compute/src/test/java/org/jclouds/compute/BaseTemplateBuilderLiveTest.java b/compute/src/test/java/org/jclouds/compute/BaseTemplateBuilderLiveTest.java index 9b2c0160d0..160c6b4229 100644 --- a/compute/src/test/java/org/jclouds/compute/BaseTemplateBuilderLiveTest.java +++ b/compute/src/test/java/org/jclouds/compute/BaseTemplateBuilderLiveTest.java @@ -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(); } }