Skip to content

Commit

Permalink
Make rate limit test more lenient
Browse files Browse the repository at this point in the history
  • Loading branch information
adamelfstrom committed Dec 3, 2024
1 parent 2898102 commit e716d5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FortnoxSDK.Tests/RateLimiterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public async Task Test_RateLimiter_NoError()
* 200 requests should be executed in ~50 seconds.
*/
Assert.AreEqual(200, counter);
Assert.IsTrue(watch.Elapsed.TotalSeconds is > 49 and < 51);
Assert.IsTrue(watch.Elapsed.TotalSeconds is > 48 and < 52);
}

[Ignore("Can make other test fail due to exhausting rate limiter")]
Expand Down

0 comments on commit e716d5d

Please sign in to comment.