Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
Evangelink committed Feb 18, 2025
1 parent b25e9f1 commit 4c71c8e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/YoloDev.Expecto.TestSdk/adapter.fs
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,7 @@ type ExpectoTestFramework(extension, getTestAssemblies, serviceProvider, capabil
let runTests (request: VSTestRunTestExecutionRequest) (token: CancellationToken) =
let runner = vstestAdapter :> ITestExecutor
use _ = token.Register (fun _ -> runner.Cancel())
match request.VSTestFilter.TestCases |> Option.ofNullable with
| Some testCases -> runner.RunTests(testCases, request.RunContext, request.FrameworkHandle)
| None -> runner.RunTests(request.AssemblyPaths, request.RunContext, request.FrameworkHandle)
runner.RunTests(request.AssemblyPaths, request.RunContext, request.FrameworkHandle)
Task.CompletedTask

override _.SynchronizedDiscoverTestsAsync(request, _, _) = discoverTests request
Expand Down

0 comments on commit 4c71c8e

Please sign in to comment.