Skip to content

Commit 4f75ccc

Browse files
committed
Fixed the RecordsDirectory path
1 parent 204e67b commit 4f75ccc

File tree

1 file changed

+2
-0
lines changed
  • src/ResourceManager/NotificationHubs/Commands.NotificationHubs.Test/ScenarioTests

1 file changed

+2
-0
lines changed

src/ResourceManager/NotificationHubs/Commands.NotificationHubs.Test/ScenarioTests/TestBaseClass.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ namespace Commands.NotificationHubs.Test
2828
using Microsoft.Rest.ClientRuntime.Azure.TestFramework;
2929
using System;
3030
using System.Linq;
31+
using System.IO;
3132

3233
public abstract class TestBaseClass : RMTestBase
3334
{
@@ -64,6 +65,7 @@ protected void RunPowerShellTest(params string[] scripts)
6465
providersToIgnore.Add("Microsoft.Azure.Management.Resources.ResourceManagementClient", "2016-02-01");
6566
HttpMockServer.Matcher = new PermissiveRecordMatcherWithApiExclusion(true, d, providersToIgnore);
6667

68+
HttpMockServer.RecordsDirectory = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "SessionRecords");
6769
using (MockContext context = MockContext.Start(callingClassType, mockName))
6870
{
6971
this.csmTestFactory = new LegacyTest.CSMTestEnvironmentFactory();

0 commit comments

Comments
 (0)