Skip to content

Commit

Permalink
Remove time-consuming comparison code in test
Browse files Browse the repository at this point in the history
  • Loading branch information
abelbraaksma committed Nov 30, 2022
1 parent ac0a632 commit f0e27ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FSharp.Control.TaskSeq.Test/TaskSeq.Realworld.fs
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ type ``Real world tests``(output: ITestOutputHelper) =
}

// the following is extremely slow, which is why we just use F#'s comparison instead
// Using this takes 67s, compared to 0.25s using normal F# comparison.
do! ts |> TaskSeq.iter (should equal expected)
// Using the following line takes 6s, compared to 0.25s using normal F# comparison.
//do! ts |> TaskSeq.iter (should equal expected)
do! ts |> TaskSeq.iter ((=) expected >> (should be True))
do! task { do count |> should equal 4096 }
}

0 comments on commit f0e27ce

Please sign in to comment.