From 73a15dc7076b028e22f21718ae4880b4c953ee73 Mon Sep 17 00:00:00 2001 From: Marty T <120425148+tippmar-nr@users.noreply.github.com> Date: Fri, 19 Apr 2024 10:41:01 -0500 Subject: [PATCH] test: Fix a flicker in SimpleCacheTests (#2417) --- tests/NewRelic.Core.Tests/NewRelic.Cache/SimpleCacheTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/NewRelic.Core.Tests/NewRelic.Cache/SimpleCacheTests.cs b/tests/NewRelic.Core.Tests/NewRelic.Cache/SimpleCacheTests.cs index 2701424094..d111c1b8a0 100644 --- a/tests/NewRelic.Core.Tests/NewRelic.Cache/SimpleCacheTests.cs +++ b/tests/NewRelic.Core.Tests/NewRelic.Cache/SimpleCacheTests.cs @@ -268,7 +268,7 @@ public void CacheMaintenanceThreadMaintainsCache() cache.GetOrAdd("key1", () => "value1"); cache.GetOrAdd("key2", () => "value2"); - Thread.Sleep(1000); + Thread.Sleep(2500); // unnecessarily long, but should eliminate test flickers EvaluateCacheMetrics(cache, 0, 2, 2, 0); }