Skip to content

Commit

Permalink
Reduce Test Times from Slow Tests (#31954)
Browse files Browse the repository at this point in the history
  • Loading branch information
alzimmermsft authored Nov 4, 2022
1 parent 00e2e72 commit 1034e2c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import org.junit.jupiter.api.BeforeEach;
import reactor.core.publisher.Mono;

import java.time.Duration;
import java.time.OffsetDateTime;
import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -68,6 +69,7 @@ public void setupManager() {
} else if (getTestMode() == TestMode.PLAYBACK) {
ledgerManager = ConfidentialLedgerManager
.configure()
.withDefaultPollInterval(Duration.ofMillis(10))
.withHttpClient(interceptorManager.getPlaybackClient())
.authenticate(getCredential(), getAzureProfile());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ public void testCreateVirtualMachineEncryptedUsingCustomerManagedKey() {
}

@Test
@DoNotRecord(skipInPlayback = true)
public void testCloneVirtualMachineToNewRegion() {
Assertions.assertTrue(CloneVirtualMachineToNewRegion.runSample(azureResourceManager));
}
Expand Down

0 comments on commit 1034e2c

Please sign in to comment.