Skip to content

Commit

Permalink
Don't run Async.Choice tests on portable
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Nov 28, 2015
1 parent 210080b commit f354534
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ namespace FSharp.Core.Unittests.FSharp_Core.Microsoft_FSharp_Control
open System
open FSharp.Core.Unittests.LibraryTestFx
open NUnit.Framework
#if FSHARP_CORE_PORTABLE
// nothing
#elseif FSHARP_CORE_NETCORE_PORTABLE
// nothing
#else
open FsCheck
#endif

module LeakUtils =
// when testing for liveness, the things that we want to observe must always be created in
Expand Down Expand Up @@ -315,6 +321,12 @@ type AsyncModule() =

Assert.AreEqual(0, counter)

#if FSHARP_CORE_PORTABLE
// nothing
#elseif FSHARP_CORE_NETCORE_PORTABLE
// nothing
#else

[<Test>]
member this.``Async.Choice takes first result that is <> None``() =
let returnFirstResult (n:PositiveInt) (i:PositiveInt) x =
Expand Down Expand Up @@ -366,6 +378,8 @@ type AsyncModule() =

Check.QuickThrowOnFailure returnNone

#endif

[<Test>]
member this.``AwaitWaitHandle.ExceptionsAfterTimeout``() =
let wh = new System.Threading.ManualResetEvent(false)
Expand Down

0 comments on commit f354534

Please sign in to comment.