Skip to content

Commit

Permalink
Set test case duration (#126)
Browse files Browse the repository at this point in the history
Co-authored-by: Jiapeng Xu <[email protected]>
  • Loading branch information
irushx and jiapengxu-msft authored Oct 25, 2023
1 parent 4b0e484 commit d66bb37
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/yunit/TestAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ private async Task RunTest(ITestExecutionRecorder log, TestCase test, bool inOnl
finally
{
result.EndTime = DateTime.UtcNow;
result.Duration = result.EndTime - result.StartTime;

lock (s_lock)
{
Expand Down

0 comments on commit d66bb37

Please sign in to comment.