Skip to content

Commit fa24737

Browse files
authored
tweak (#15757)
1 parent df30218 commit fa24737

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/FSharp.Test.Utilities/CompilerAssert.fs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -289,10 +289,7 @@ module rec CompilerAssertHelpers =
289289
member x.ExecuteTestCase assemblyPath (deps: string[]) =
290290
AppDomain.CurrentDomain.add_AssemblyResolve(ResolveEventHandler(fun _ args ->
291291
deps
292-
|> Array.tryFind (fun (x: string) -> Path.GetFileNameWithoutExtension x = args.Name)
293-
|> Option.orElseWith (fun () ->
294-
deps
295-
|> Array.tryFind (fun (x: string) -> args.Name.StartsWith(Path.GetFileNameWithoutExtension(x) + ", Version")))
292+
|> Array.tryFind (fun (x: string) -> Path.GetFileNameWithoutExtension x = AssemblyName(args.Name).Name)
296293
|> Option.bind (fun x -> if FileSystem.FileExistsShim x then Some x else None)
297294
|> Option.map Assembly.LoadFile
298295
|> Option.defaultValue null))

0 commit comments

Comments
 (0)