Skip to content

Commit

Permalink
Small formatting fix for XmppClientTests (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Sep 8, 2019
1 parent f4f2ad7 commit 641eb5a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Emulsion.Tests/Xmpp/XmppClientTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,12 @@ let ``connect function calls the Connect method of the client passed``(): unit =

[<Fact>]
let ``connect function returns a lifetime terminated whenever the ConnectionFailed callback is triggered``(): unit =
let mutable callback = ignore
let client = XmppClientFactory.create(addConnectionFailedHandler = fun _ h -> callback <- h)
let lt = Async.RunSynchronously <| XmppClient.connect client
Assert.True lt.IsAlive
callback(ConnFailedArgs())
Assert.False lt.IsAlive
let mutable callback = ignore
let client = XmppClientFactory.create(addConnectionFailedHandler = fun _ h -> callback <- h)
let lt = Async.RunSynchronously <| XmppClient.connect client
Assert.True lt.IsAlive
callback(ConnFailedArgs())
Assert.False lt.IsAlive

[<Fact>]
let ``enterRoom function calls JoinMultiUserChat``(): unit =
Expand Down

0 comments on commit 641eb5a

Please sign in to comment.