From 1094ae3723795f7cc8f31dba5a5e79f3bd880cee Mon Sep 17 00:00:00 2001 From: Shannon Date: Fri, 5 Mar 2021 15:37:34 +1100 Subject: [PATCH] fix test --- .../Umbraco.Infrastructure/Scoping/ScopeTests.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeTests.cs b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeTests.cs index b5a82f8e28..0efd0091d1 100644 --- a/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeTests.cs +++ b/src/Umbraco.Tests.Integration/Umbraco.Infrastructure/Scoping/ScopeTests.cs @@ -618,6 +618,7 @@ namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Scoping IScope nested = scopeProvider.CreateScope(); Assert.IsNotNull(scopeProvider.AmbientScope); var scopeRef = new HttpScopeReference(scopeProvider); + scopeRef.Register(); scopeRef.Dispose(); Assert.IsNull(scopeProvider.AmbientScope); Assert.Throws(() =>