Skip to content

Commit

Permalink
Unrelated test fix + logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Craver committed Aug 26, 2020
1 parent f2831c8 commit 26eb3c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/StackExchange.Redis.Tests/Config.cs
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,10 @@ public void GetTime()
{
var server = GetAnyMaster(muxer);
var serverTime = server.Time();
Log(serverTime.ToString());
var delta = Math.Abs((DateTime.UtcNow - serverTime).TotalSeconds);

Assert.True(delta < 5);
var localTime = DateTime.UtcNow;
Log("Server: " + serverTime.ToString());
Log("Local: " + localTime.ToString());
Assert.Equal(localTime, serverTime, TimeSpan.FromSeconds(10));
}
}

Expand Down

0 comments on commit 26eb3c7

Please sign in to comment.