Skip to content

Commit

Permalink
Fix exception during log collection
Browse files Browse the repository at this point in the history
  • Loading branch information
sharwell committed Mar 21, 2023
1 parent cd52b9b commit a1ec368
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ public virtual async Task DisposeAsync()
public virtual void Dispose()
{
Assert.True(PInvoke.SystemParametersInfo(SYSTEM_PARAMETERS_INFO_ACTION.SPI_SETCLIENTAREAANIMATION, ref _clientAreaAnimation));
DataCollectionService.CurrentTest = null;
}

protected async Task WaitForIdleAsync()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static void RegisterCustomLogger(Action<string> callback, string logId, s
internal static string GetTestName(ITestCase testCase)
{
var testMethod = testCase.TestMethod.Method;
var testClass = testMethod.Type.Name;
var testClass = testCase.TestMethod.TestClass.Class.Name;
var lastDot = testClass.LastIndexOf('.');
testClass = testClass.Substring(lastDot + 1);
return $"{testClass}.{testMethod.Name}";
Expand Down

0 comments on commit a1ec368

Please sign in to comment.