From a19694e28744fbe31cfe84a23d0c03e0ada19266 Mon Sep 17 00:00:00 2001 From: John Luo Date: Fri, 7 Jul 2017 20:39:51 -0700 Subject: [PATCH] React to caching API updates --- test/Microsoft.AspNetCore.Session.Tests/SessionTests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/Microsoft.AspNetCore.Session.Tests/SessionTests.cs b/test/Microsoft.AspNetCore.Session.Tests/SessionTests.cs index 8f34def5c0..5f28c79b08 100644 --- a/test/Microsoft.AspNetCore.Session.Tests/SessionTests.cs +++ b/test/Microsoft.AspNetCore.Session.Tests/SessionTests.cs @@ -18,6 +18,7 @@ using Microsoft.Extensions.Internal; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging.Abstractions; using Microsoft.Extensions.Logging.Testing; +using Microsoft.Extensions.Options; using Microsoft.Net.Http.Headers; using Xunit; @@ -720,7 +721,7 @@ namespace Microsoft.AspNetCore.Session public UnreliableCache(IMemoryCache memoryCache) { - _cache = new MemoryDistributedCache(memoryCache); + _cache = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions())); } public byte[] Get(string key)