mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
change to inrange to see value
Commit migrated from https://github.com/dotnet/corefx/commit/964009e9a23f7176dd24299da9aca430d23be2d3
This commit is contained in:
1 parent
c087ce1683
commit
ce492417e6
1 file changed
+2
-2
@@ -767,9 +767,9 @@ namespace System.Threading.Threads.Tests
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => Thread.Sleep(TimeSpan.FromMilliseconds((double)int.MaxValue + 1)));
|
||||
|
||||
Thread.Sleep(0);
|
||||
var startTime = DateTime.Now;
|
||||
var startTime = DateTime.UtcNow;
|
||||
Thread.Sleep(500);
|
||||
Assert.True((DateTime.Now - startTime).TotalMilliseconds >= 100);
|
||||
Assert.InRange((DateTime.UtcNow - startTime).TotalMilliseconds, 100, int.MaxValue);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in new issue
Block a user