Commit afe383f3 authored by Nick Craver's avatar Nick Craver

Tests: Time(): standardize format to include ms

parent 9e470ef6
...@@ -284,7 +284,6 @@ public void GetWithExpiryWrongTypeSync() ...@@ -284,7 +284,6 @@ public void GetWithExpiryWrongTypeSync()
[Fact] [Fact]
public async Task TestQuit() public async Task TestQuit()
{ {
string Time() => DateTime.UtcNow.ToString("HH:mm:ss.fff");
SetExpectedAmbientFailureCount(1); SetExpectedAmbientFailureCount(1);
using (var muxer = Create(allowAdmin: true)) using (var muxer = Create(allowAdmin: true))
{ {
......
...@@ -17,7 +17,7 @@ public override void WriteLine(string value) ...@@ -17,7 +17,7 @@ public override void WriteLine(string value)
{ {
try try
{ {
base.Write(DateTime.UtcNow.ToString("HH:mm:ss.fff")); base.Write(TestBase.Time());
base.Write(": "); base.Write(": ");
base.WriteLine(value); base.WriteLine(value);
} }
......
...@@ -83,7 +83,7 @@ static TestBase() ...@@ -83,7 +83,7 @@ static TestBase()
} }
}; };
} }
private string Time() => DateTime.UtcNow.ToString("T"); internal static string Time() => DateTime.UtcNow.ToString("HH:mm:ss.fff");
protected void OnConnectionFailed(object sender, ConnectionFailedEventArgs e) protected void OnConnectionFailed(object sender, ConnectionFailedEventArgs e)
{ {
Interlocked.Increment(ref privateFailCount); Interlocked.Increment(ref privateFailCount);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment