From 6960aa6a1c1b3080b47c577c44ed1e6af489431f Mon Sep 17 00:00:00 2001 From: Anudeep Sharma Date: Mon, 12 Sep 2016 14:37:32 -0700 Subject: [PATCH] Set the correct storage account name for the test. --- azure/src/test/java/com/microsoft/azure/AzureTests.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/azure/src/test/java/com/microsoft/azure/AzureTests.java b/azure/src/test/java/com/microsoft/azure/AzureTests.java index 44ea55003011..91b28e6b1051 100644 --- a/azure/src/test/java/com/microsoft/azure/AzureTests.java +++ b/azure/src/test/java/com/microsoft/azure/AzureTests.java @@ -266,12 +266,13 @@ public void listStorageAccounts() throws Exception { @Test public void createStorageAccount() throws Exception { - StorageAccount storageAccount = azure.storageAccounts().define("mystg123") + String storageAccountName = "testsa" + String.valueOf(System.currentTimeMillis() % 100000L); + StorageAccount storageAccount = azure.storageAccounts().define(storageAccountName) .withRegion(Region.ASIA_EAST) .withNewResourceGroup() .withSku(SkuName.PREMIUM_LRS) .create(); - Assert.assertEquals(storageAccount.name(), "mystg123"); + Assert.assertEquals(storageAccount.name(), storageAccountName); } }