Skip to content

Commit 8a6ec2a

Browse files
committed
Fix ServiceManagement test
1 parent 6a18e7a commit 8a6ec2a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement.Test/FunctionalTests/PIRTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,12 @@ public void AzurePlatformVMImageScenarioTest()
342342

343343
private void SwitchToPublisher()
344344
{
345-
vmPowershellCmdlets.SetDefaultAzureSubscription(publisher);
345+
vmPowershellCmdlets.SetDefaultAzureSubscription(publisherSubId);
346346
}
347347

348348
private void SwitchToNormalUser()
349349
{
350-
vmPowershellCmdlets.SetDefaultAzureSubscription(normaluser);
350+
vmPowershellCmdlets.SetDefaultAzureSubscription(normaluserSubId);
351351
}
352352

353353
private void WaitForReplicationComplete(string imageName)

src/ServiceManagement/Compute/Commands.ServiceManagement.Test/FunctionalTests/ServiceManagementTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ protected static void ReImportSubscription()
341341
{
342342
// Re-import the subscription.
343343
vmPowershellCmdlets.ImportAzurePublishSettingsFile();
344-
vmPowershellCmdlets.SetDefaultAzureSubscription(CredentialHelper.DefaultSubscriptionName);
344+
vmPowershellCmdlets.SetDefaultAzureSubscription(defaultAzureSubscription.SubscriptionId);
345345
vmPowershellCmdlets.SetAzureSubscription(defaultAzureSubscription.SubscriptionId, defaultAzureSubscription.CurrentStorageAccountName);
346346
}
347347

0 commit comments

Comments
 (0)