Skip to content

Commit d009b24

Browse files
committed
Fix spaces
1 parent 0b96368 commit d009b24

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/Cli/dotnet/commands/dotnet-test/Terminal/AnsiTerminalTestProgressFrame.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,9 @@ public void Render(AnsiTerminalTestProgressFrame previousFrame, TestProgressStat
189189

190190
// When there is nothing to render, don't write empty lines, e.g. when we start the test run, and then we kick off build
191191
// in dotnet test, there is a long pause where we have no assemblies and no test results (yet).
192-
if (progress.Length > 0)
192+
//
193+
// We do pre-allocate the array so it is full of nulls once we allocate it but don't have any items to render yet.
194+
if (progress.Length > 0 && progress.Any(i => i != null))
193195
{
194196
terminal.AppendLine();
195197
}

src/Cli/dotnet/commands/dotnet-test/TestingPlatformCommand.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using System;
55
using System.Collections.Concurrent;
66
using System.CommandLine;
7+
using System.Diagnostics;
78
using Microsoft.DotNet.Tools.Test;
89
using Microsoft.TemplateEngine.Cli.Commands;
910
using Microsoft.Testing.Platform.Helpers;

src/Cli/dotnet/commands/dotnet-test/VSTestTrace.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static void SafeWriteTrace(Func<string> messageLog)
2727

2828
try
2929
{
30-
string message = $"[dotnet test - {DateTimeOffset.UtcNow}]{messageLog()}";
30+
string message = $"[dotnet test - {DateTimeOffset.UtcNow.ToString(format: "MM/dd/yyyy HH:mm:ss.fff")}]{messageLog()}";
3131
if (!string.IsNullOrEmpty(s_traceFilePath))
3232
{
3333
lock (s_traceFilePath)

0 commit comments

Comments
 (0)