Skip to content

Commit b004afe

Browse files
committed
fix tests by using proper exception type...
1 parent 241b159 commit b004afe

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

‎integrationtests/Paket.IntegrationTests/LoadingScriptGenerationTests.fs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ let ``fails on wrong framework given`` () =
144144

145145
use __ = paket "install" scenario |> fst
146146

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

162162
use __ = paket "install" scenario |> fst
163163

164-
let failure = Assert.Throws (fun () ->
164+
let failure = Assert.Throws<ProcessFailedWithExitCode> (fun () ->
165165
let result = directPaket (sprintf "generate-load-scripts type foo type bar framework net45") scenario
166166
printf "%s" result
167167
)

‎integrationtests/Paket.IntegrationTests/RestoreSpecs.fs‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ let ``#3608 dotnet build should work with unparsable cache``() =
1313
let project = "console"
1414
let scenario = "i003608-invalid-cache"
1515
use __ = prepareSdk scenario
16-
1716
let wd = (scenarioTempPath scenario) @@ project
1817
// Build should work immediately (and call 'paket restore')
1918
directDotnet true (sprintf "build %s.fsproj" project) wd

0 commit comments

Comments
 (0)