From ecb5e80b84e7d659f86be1a561fc327537f8c247 Mon Sep 17 00:00:00 2001 From: Timothy Baldridge Date: Mon, 27 Sep 2021 19:44:12 -0600 Subject: [PATCH] Fix slightly broken OSX tests --- Wabbajack.RateLimiter.Test/RateLimiterTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Wabbajack.RateLimiter.Test/RateLimiterTests.cs b/Wabbajack.RateLimiter.Test/RateLimiterTests.cs index 279d04cb..fb7b6332 100644 --- a/Wabbajack.RateLimiter.Test/RateLimiterTests.cs +++ b/Wabbajack.RateLimiter.Test/RateLimiterTests.cs @@ -109,7 +109,7 @@ namespace Wabbajack.RateLimiter.Test { tasks.Add(Task.Run(async () => { - using var job = await rateLimiter.Begin("Transferring", 1024 * 1024 / 10 * 5,CancellationToken.None); + using var job = await rateLimiter.Begin("Transferring", 1024 * 1024 / 10 * 5, CancellationToken.None); for (var x = 0; x < 5; x++) { await job.Report(1024 * 1024 / 10, CancellationToken.None); @@ -120,7 +120,7 @@ namespace Wabbajack.RateLimiter.Test await WhenAll(tasks.ToArray()); var elapsed = sw.Elapsed; Assert.True(elapsed > TimeSpan.FromSeconds(0.5)); - Assert.True(elapsed < TimeSpan.FromSeconds(1)); + Assert.True(elapsed < TimeSpan.FromSeconds(1.5)); } } } \ No newline at end of file