From b004afeb6f9b84b964842a6b6e8300f00de49d1a Mon Sep 17 00:00:00 2001 From: Matthias Dittrich Date: Tue, 2 Jul 2019 20:38:22 +0200 Subject: [PATCH] fix tests by using proper exception type... --- .../Paket.IntegrationTests/LoadingScriptGenerationTests.fs | 4 ++-- integrationtests/Paket.IntegrationTests/RestoreSpecs.fs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/integrationtests/Paket.IntegrationTests/LoadingScriptGenerationTests.fs b/integrationtests/Paket.IntegrationTests/LoadingScriptGenerationTests.fs index b692edbbcb..43be8b5c40 100644 --- a/integrationtests/Paket.IntegrationTests/LoadingScriptGenerationTests.fs +++ b/integrationtests/Paket.IntegrationTests/LoadingScriptGenerationTests.fs @@ -144,7 +144,7 @@ let ``fails on wrong framework given`` () = use __ = paket "install" scenario |> fst - let failure = Assert.Throws (fun () -> + let failure = Assert.Throws (fun () -> let result = directPaket "generate-load-scripts framework foo framework bar framework net45" scenario printf "%s" result ) @@ -161,7 +161,7 @@ let ``fails on wrong scripttype given`` () = use __ = paket "install" scenario |> fst - let failure = Assert.Throws (fun () -> + let failure = Assert.Throws (fun () -> let result = directPaket (sprintf "generate-load-scripts type foo type bar framework net45") scenario printf "%s" result ) diff --git a/integrationtests/Paket.IntegrationTests/RestoreSpecs.fs b/integrationtests/Paket.IntegrationTests/RestoreSpecs.fs index 8aa8384a79..2ed21bf8db 100644 --- a/integrationtests/Paket.IntegrationTests/RestoreSpecs.fs +++ b/integrationtests/Paket.IntegrationTests/RestoreSpecs.fs @@ -13,7 +13,6 @@ let ``#3608 dotnet build should work with unparsable cache``() = let project = "console" let scenario = "i003608-invalid-cache" use __ = prepareSdk scenario - let wd = (scenarioTempPath scenario) @@ project // Build should work immediately (and call 'paket restore') directDotnet true (sprintf "build %s.fsproj" project) wd