Skip to content

Commit f709740

Browse files
committed
fix: petstore
1 parent 693c26f commit f709740

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/SwaggerProvider.ProviderTests/v2/Swagger.PetStore.Tests.fs

+2-4
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,8 @@ let ``throw custom exceptions from task``() =
5959
try
6060
let! _ = storeTask.GetPetById(342L)
6161
failwith "Call should fail"
62-
with :? System.AggregateException as aex ->
63-
match aex.InnerException with
64-
| :? System.Net.Http.HttpRequestException as ex -> ex.Message |> shouldContainText "Not Found"
65-
| _ -> raise aex
62+
with :? System.Net.Http.HttpRequestException as ex ->
63+
ex.Message |> shouldContainText "Not Found"
6664
}
6765

6866
[<Fact>]

0 commit comments

Comments
 (0)