From 306dbbaca86f366dff33ad161da2d346e2e05a85 Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Sun, 8 Sep 2019 20:51:16 +0700 Subject: [PATCH] Small formatting fixes around XmppClient (#18) --- Emulsion.Tests/Xmpp/XmppClientTests.fs | 11 +++++------ Emulsion/Xmpp/XmppClient.fs | 1 - 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Emulsion.Tests/Xmpp/XmppClientTests.fs b/Emulsion.Tests/Xmpp/XmppClientTests.fs index 9f267dd6..d9147160 100644 --- a/Emulsion.Tests/Xmpp/XmppClientTests.fs +++ b/Emulsion.Tests/Xmpp/XmppClientTests.fs @@ -67,8 +67,7 @@ let ``connect function calls the Connect method of the client passed``(): unit = Assert.True connectCalled [] -let ``connect function returns a lifetime terminated whenever the ConnectionFailed callback is triggered``() - : unit = +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 @@ -77,7 +76,7 @@ let ``connect function returns a lifetime terminated whenever the ConnectionFail Assert.False lt.IsAlive [] -let ``enter function calls JoinMultiUserChat``(): unit = +let ``enterRoom function calls JoinMultiUserChat``(): unit = let mutable called = false let mutable presenceHandlers = ResizeArray() let client = @@ -94,7 +93,7 @@ let ``enter function calls JoinMultiUserChat``(): unit = ) [] -let ``enter throws an exception in case of an error presence``(): unit = +let ``enterRoom throws an exception in case of an error presence``(): unit = let mutable presenceHandlers = ResizeArray() let client = XmppClientFactory.create( @@ -112,7 +111,7 @@ let ``enter throws an exception in case of an error presence``(): unit = ) [] -let ``Lifetime returned from enter terminates by a room leave presence``(): unit = +let ``Lifetime returned from enterRoom terminates by a room leave presence``(): unit = let mutable presenceHandlers = ResizeArray() let client = XmppClientFactory.create( @@ -129,7 +128,7 @@ let ``Lifetime returned from enter terminates by a room leave presence``(): unit ) [] -let ``Lifetime returned from enter terminates by an external lifetime termination``(): unit = +let ``Lifetime returned from enterRoom terminates by an external lifetime termination``(): unit = let mutable presenceHandlers = ResizeArray() let client = XmppClientFactory.create( diff --git a/Emulsion/Xmpp/XmppClient.fs b/Emulsion/Xmpp/XmppClient.fs index 65b547a1..eedb3a80 100644 --- a/Emulsion/Xmpp/XmppClient.fs +++ b/Emulsion/Xmpp/XmppClient.fs @@ -4,7 +4,6 @@ module Emulsion.Xmpp.XmppClient open System open JetBrains.Lifetimes -open Serilog open SharpXMPP open SharpXMPP.XMPP