move disposal

This commit is contained in:
Gleb Khmyznikov
2025-12-01 20:13:51 -08:00
parent 8d8a1af43a
commit d1b2331adc

View File

@@ -128,7 +128,6 @@ namespace Microsoft.PowerToys.UITest
}
}
Dispose();
if (TestContext.CurrentTestOutcome is UnitTestOutcome.Failed
or UnitTestOutcome.Error
or UnitTestOutcome.Unknown)
@@ -143,6 +142,8 @@ namespace Microsoft.PowerToys.UITest
// Clean up recording if test passed
CleanupRecordingDirectory();
}
Dispose();
}
this.Session.Cleanup();