Skip to content

Commit 11c41ae

Browse files
committed
Test - CachePath should be child of RootCachePath
1 parent 9b4d68b commit 11c41ae

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CefSharp.Test/CefSharpFixture.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ private void CefInitialize()
5050
//The location where cache data will be stored on disk. If empty an in-memory cache will be used for some features and a temporary disk cache for others.
5151
//HTML5 databases such as localStorage will only persist across sessions if a cache path is specified.
5252
settings.CachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Tests\\Cache");
53+
settings.RootCachePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Tests");
5354

5455
Cef.Initialize(settings, performDependencyCheck: false, browserProcessHandler: null);
5556
}

CefSharp.Test/Framework/RequestContextFacts.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
//
33
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
44

5+
using System;
6+
using System.IO;
57
using Xunit;
68

79
namespace CefSharp.Test.Framework
@@ -23,7 +25,7 @@ public void IsSameAs()
2325
public void IsSharingWith()
2426
{
2527
var ctx1 = RequestContext.Configure()
26-
.WithCachePath(@"c:\temp")
28+
.WithCachePath(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "CefSharp\\Tests\\TempCache1"))
2729
.Create();
2830
var ctx2 = new RequestContext(ctx1);
2931

0 commit comments

Comments
 (0)