Skip to content

Commit

Permalink
fix tests by using proper exception type...
Browse files Browse the repository at this point in the history
  • Loading branch information
matthid committed Jul 2, 2019
1 parent 241b159 commit b004afe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ let ``fails on wrong framework given`` () =

use __ = paket "install" scenario |> fst

let failure = Assert.Throws (fun () ->
let failure = Assert.Throws<ProcessFailedWithExitCode> (fun () ->
let result = directPaket "generate-load-scripts framework foo framework bar framework net45" scenario
printf "%s" result
)
Expand All @@ -161,7 +161,7 @@ let ``fails on wrong scripttype given`` () =

use __ = paket "install" scenario |> fst

let failure = Assert.Throws (fun () ->
let failure = Assert.Throws<ProcessFailedWithExitCode> (fun () ->
let result = directPaket (sprintf "generate-load-scripts type foo type bar framework net45") scenario
printf "%s" result
)
Expand Down
1 change: 0 additions & 1 deletion integrationtests/Paket.IntegrationTests/RestoreSpecs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b004afe

Please sign in to comment.