Skip to content

Commit

Permalink
Add a unit test to demonstrate a bug with Akka.FSharp.System.create w…
Browse files Browse the repository at this point in the history
…hen creating with a configuration that has akka.extensions specified.
  • Loading branch information
aaronpalmer authored and Danthar committed May 17, 2018
1 parent 80aa462 commit 53e0e06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/Akka.FSharp.Tests/InfrastructureTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,6 @@ let ``System.create should support extensions`` () =
akka.extensions = ["Akka.Cluster.Tools.Client.ClusterClientReceptionistExtensionProvider, Akka.Cluster.Tools"]
"""
|> Configuration.parse
let system = System.create "my-system" extensionConfig
system |> (isNull >> not)
System.create "my-system" extensionConfig
|> notEquals null

1 change: 1 addition & 0 deletions src/core/Akka.FSharp.Tests/Tests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ module Tests
open Xunit

let equals (expected: 'a) (value: 'a) = Assert.Equal<'a>(expected, value)
let notEquals (notExpected: 'a) (value: 'a) = Assert.NotEqual<'a>(notExpected, value)
let success = ()

0 comments on commit 53e0e06

Please sign in to comment.