Skip to content

Commit

Permalink
Remvoe flaky and slow test
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Oct 24, 2016
1 parent 5b60d9e commit 14fa5b1
Show file tree
Hide file tree
Showing 11 changed files with 0 additions and 440 deletions.
49 changes: 0 additions & 49 deletions integrationtests/Paket.IntegrationTests/InstallSpecs.fs
Original file line number Diff line number Diff line change
Expand Up @@ -374,55 +374,6 @@ let ``#1507 allows to download remote dependencies``() =
File.Exists (Path.Combine(scenarioTempPath scenario, "paket-files", "forki", "PrivateEye", "privateeye.fsx")) |> shouldEqual true
File.Exists (Path.Combine(scenarioTempPath scenario, "paket-files", "forki", "PrivateEye", "bin", "PrivateEye.Bridge.dll")) |> shouldEqual true

[<Test>]
let ``#1552 install mvvmlightlibs again``() =
let scenarioName = "i001552-install-mvvmlightlibs-again"
let scenarioPath = scenarioTempPath scenarioName

let expected = File.ReadAllText (Path.Combine(originalScenarioPath scenarioName,"paket.locktemplate")) |> normalizeLineEndings

let oldProjectFile = Path.Combine(originalScenarioPath scenarioName,"CSharp","CSharp.csprojtemplate")
let oldProjectFileText = File.ReadAllText oldProjectFile |> normalizeLineEndings

let newLockFilePath = Path.Combine(scenarioPath,"paket.lock")
let lockFileShouldBeConsistentAfterCommand command =
directPaketInPath command scenarioPath |> ignore

File.ReadAllText newLockFilePath |> normalizeLineEndings |> shouldEqual expected

let newProjectFile = Path.Combine(scenarioPath,"CSharp","CSharp.csproj")
File.ReadAllText newProjectFile
|> normalizeLineEndings |> shouldEqual oldProjectFileText

prepare scenarioName
let commands =
["install -f"
"update -f"
"install"
"update"]
let rnd = new Random((int)DateTime.Now.Ticks)
for x in [1..10] do
let ind = if x<=4 then x-1 else rnd.Next(commands.Length)
let command = commands.[ind]
lockFileShouldBeConsistentAfterCommand command

[<Test>]
let ``#1552 install mvvmlightlibs first time``() =
let scenarioName = "i001552-install-mvvmlightlibs-first-time"

let expected = File.ReadAllText (Path.Combine(originalScenarioPath scenarioName,"paket.locktemplate")) |> normalizeLineEndings

install scenarioName |> ignore

let newLockFilePath = Path.Combine(scenarioTempPath scenarioName,"paket.lock")
File.ReadAllText newLockFilePath |> normalizeLineEndings |> shouldEqual expected

directPaketInPath "install" (scenarioTempPath scenarioName) |> ignore
File.ReadAllText newLockFilePath |> normalizeLineEndings |> shouldEqual expected

directPaketInPath "install -f" (scenarioTempPath scenarioName) |> ignore
File.ReadAllText newLockFilePath |> normalizeLineEndings |> shouldEqual expected

[<Test>]
[<Ignore("very slow test")>]
let ``#1589 http dep restore in parallel``() =
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 14fa5b1

Please sign in to comment.