diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/storage/default_file_source.test.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/storage/default_file_source.test.cpp b/test/storage/default_file_source.test.cpp index e1c5df6895..64b23e315c 100644 --- a/test/storage/default_file_source.test.cpp +++ b/test/storage/default_file_source.test.cpp @@ -572,6 +572,18 @@ TEST(DefaultFileSource, TEST_REQUIRES_SERVER(SetResourceTransform)) { loop.run(); } +TEST(DefaultFileSource, SetResourceCachePath) { + util::RunLoop loop; + DefaultFileSource fs(":memory:", "."); + + Actor<PathChangeCallback> callback(loop, [&]() -> void { + loop.stop(); + }); + + fs.setResourceCachePath("./new_offline.db", callback.self()); + loop.run(); +} + // Test that a stale cache file that has must-revalidate set will trigger a response. TEST(DefaultFileSource, TEST_REQUIRES_SERVER(RespondToStaleMustRevalidate)) { util::RunLoop loop; |