Skip to content

Commit b4baa9d

Browse files
Skip update capabilities live test (Azure#26759)
This prevents the update capabilities test from running in the live test pipeline, which caused an issue with parallel test execution updating the same phone number.
1 parent c60f833 commit b4baa9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/communication/Azure.Communication.PhoneNumbers/tests/PhoneNumbersClient/PhoneNumbersClientLiveTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public void CreateSearch()
178178
[AsyncOnly]
179179
public async Task UpdateCapabilitiesAsync()
180180
{
181-
if (TestEnvironment.ShouldIgnorePhoneNumbersTests) {
181+
if (TestEnvironment.ShouldIgnorePhoneNumbersTests || SkipPhoneNumberLiveTests) {
182182
Assert.Ignore("Skip phone number live tests flag is on.");
183183
}
184184
var number = GetTestPhoneNumber();
@@ -278,7 +278,7 @@ public async Task GetPurchasedPhoneNumbersNextPage()
278278
[SyncOnly]
279279
public void UpdateCapabilities()
280280
{
281-
if (TestEnvironment.ShouldIgnorePhoneNumbersTests) {
281+
if (TestEnvironment.ShouldIgnorePhoneNumbersTests || SkipPhoneNumberLiveTests) {
282282
Assert.Ignore("Skip phone number live tests flag is on.");
283283
}
284284
var number = GetTestPhoneNumber();

0 commit comments

Comments
 (0)