diff --git a/src/RecoveryServices/RecoveryServices.Backup.Helpers/TrackingHelpers.cs b/src/RecoveryServices/RecoveryServices.Backup.Helpers/TrackingHelpers.cs index 92ae26edb8c3..0ef8b226c045 100644 --- a/src/RecoveryServices/RecoveryServices.Backup.Helpers/TrackingHelpers.cs +++ b/src/RecoveryServices/RecoveryServices.Backup.Helpers/TrackingHelpers.cs @@ -48,7 +48,7 @@ public static T GetOperationStatus(RestAzureNS.AzureOperationResponse respons while (opStatusResponse.Body.Status == ServiceClientModel.OperationStatusValues.InProgress) { TestMockSupport.Delay(_defaultSleepForOperationTracking * 1000); - if (String.Compare(testMode, "Record", StringComparison.OrdinalIgnoreCase) == 0 || TestMockSupport.RunningMocked) + if (String.Compare(testMode, "Record", StringComparison.OrdinalIgnoreCase) == 0 || !TestMockSupport.RunningMocked) { Thread.Sleep(5000); } @@ -80,7 +80,7 @@ public static T GetOperationStatus(RestAzureNS.AzureOperationResponse r ServiceClientModel.OperationStatusValues.InProgress) { TestMockSupport.Delay(_defaultSleepForOperationTracking * 1000); - if (String.Compare(testMode, "Record", StringComparison.OrdinalIgnoreCase) == 0 || TestMockSupport.RunningMocked) + if (String.Compare(testMode, "Record", StringComparison.OrdinalIgnoreCase) == 0 || !TestMockSupport.RunningMocked) { Thread.Sleep(5000); } @@ -111,7 +111,7 @@ public static RestAzureNS.AzureOperationResponse GetOperationResult( while (opStatusResponse.Response.StatusCode == SystemNet.HttpStatusCode.Accepted) { TestMockSupport.Delay(_defaultSleepForOperationTracking * 1000); - if (String.Compare(testMode, "Record", StringComparison.OrdinalIgnoreCase) == 0 || TestMockSupport.RunningMocked) + if (String.Compare(testMode, "Record", StringComparison.OrdinalIgnoreCase) == 0 || !TestMockSupport.RunningMocked) { Thread.Sleep(5000); } @@ -142,7 +142,7 @@ public static RestAzureNS.AzureOperationResponse GetOperationStatusDataMove GetOperationResult( while (opStatusResponse.Response.StatusCode == SystemNet.HttpStatusCode.Accepted) { TestMockSupport.Delay(_defaultSleepForOperationTracking * 1000); - if (String.Compare(testMode, "Record", StringComparison.OrdinalIgnoreCase) == 0 || TestMockSupport.RunningMocked) + if (String.Compare(testMode, "Record", StringComparison.OrdinalIgnoreCase) == 0 || !TestMockSupport.RunningMocked) { Thread.Sleep(5000); } @@ -217,7 +217,7 @@ public static RestAzureNS.AzureOperationResponse GetOperationResult( while (opStatusResponse.Response.StatusCode == SystemNet.HttpStatusCode.Accepted) { TestMockSupport.Delay(_defaultSleepForOperationTracking * 1000); - if (String.Compare(testMode, "Record", StringComparison.OrdinalIgnoreCase) == 0 || TestMockSupport.RunningMocked) + if (String.Compare(testMode, "Record", StringComparison.OrdinalIgnoreCase) == 0 || !TestMockSupport.RunningMocked) { Thread.Sleep(5000); }