From a98772e46e0e108c375fe79738131e793165ec6c Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Sat, 28 Aug 2021 19:41:50 +0300 Subject: [PATCH] Try using ConcurrentDictionary for caching in tests --- DiscordChatExporter.Cli.Tests/Utils/GlobalCache.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DiscordChatExporter.Cli.Tests/Utils/GlobalCache.cs b/DiscordChatExporter.Cli.Tests/Utils/GlobalCache.cs index e179d8be..5e357b9d 100644 --- a/DiscordChatExporter.Cli.Tests/Utils/GlobalCache.cs +++ b/DiscordChatExporter.Cli.Tests/Utils/GlobalCache.cs @@ -1,12 +1,12 @@ using System; -using System.Collections.Generic; +using System.Collections.Concurrent; using System.Threading.Tasks; namespace DiscordChatExporter.Cli.Tests.Utils { internal static class GlobalCache { - private static readonly Dictionary Dictionary = new(); + private static readonly ConcurrentDictionary Dictionary = new(); public static async Task WrapAsync(string key, Func> getAsync) {