Skip to content

Commit 26a1950

Browse files
authored
Fix scenario test hanging issue (#13644)
* Fix scenario test hanging issue * Update ChangeLog.md
1 parent e81d7e9 commit 26a1950

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Sql/Sql.Test/ScenarioTests/SqlTestsBase.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
namespace Microsoft.Azure.Commands.ScenarioTest.SqlTests
3939
{
40-
public class SqlTestsBase : RMTestBase
40+
public class SqlTestsBase : RMTestBase, IDisposable
4141
{
4242
protected EnvironmentSetupHelper Helper;
4343
protected string[] resourceTypesToIgnoreApiVersion;
@@ -186,5 +186,11 @@ protected static CommonStorage.StorageManagementClient GetStorageManagementClien
186186
return context.GetServiceClient<CommonStorage.StorageManagementClient>(TestEnvironmentFactory.GetTestEnvironment());
187187
}
188188

189+
public void Dispose()
190+
{
191+
XunitTracingInterceptor.RemoveFromContext(Helper.TracingInterceptor);
192+
Helper.TracingInterceptor = null;
193+
Helper = null;
194+
}
189195
}
190196
}

0 commit comments

Comments
 (0)