mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:07:25 +08:00
Fix test failures due to online cache download
This commit is contained in:
parent
6fef4eeb8f
commit
68d40cf790
@ -9,6 +9,7 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Dapper;
|
||||
using Microsoft.Data.Sqlite;
|
||||
using osu.Framework.Development;
|
||||
using osu.Framework.IO.Network;
|
||||
using osu.Framework.Logging;
|
||||
using osu.Framework.Platform;
|
||||
@ -40,7 +41,8 @@ namespace osu.Game.Beatmaps
|
||||
this.api = api;
|
||||
this.storage = storage;
|
||||
|
||||
if (!storage.Exists(cache_database_name))
|
||||
// avoid downloading / using cache for unit tests.
|
||||
if (!DebugUtils.IsNUnitRunning && !storage.Exists(cache_database_name))
|
||||
prepareLocalCache();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user