Skip to content

Commit abed7d9

Browse files
authored
refactored test base to handle playback mode (Azure#33283)
1 parent b6d858c commit abed7d9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sdk/chaos/Azure.ResourceManager.Chaos/tests/ChaosManagementTestBase.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ protected async Task Initialize()
7070
/// </summary>
7171
public int CreateVmssId()
7272
{
73+
if (this.Mode == RecordedTestMode.Playback)
74+
{
75+
return this.IsAsync ? 5 : 4;
76+
}
7377
var framework = RuntimeInformation.FrameworkDescription;
7478
if (framework.IndexOf(TestConstants.DotNetFrameworkName, StringComparison.OrdinalIgnoreCase) != -1)
7579
{

0 commit comments

Comments
 (0)