From 641eb5ad0b85e493ff849bb590f29bd4c3aae780 Mon Sep 17 00:00:00 2001 From: Friedrich von Never Date: Sun, 8 Sep 2019 20:59:43 +0700 Subject: [PATCH] Small formatting fix for XmppClientTests (#18) --- Emulsion.Tests/Xmpp/XmppClientTests.fs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Emulsion.Tests/Xmpp/XmppClientTests.fs b/Emulsion.Tests/Xmpp/XmppClientTests.fs index 87d89632..343af396 100644 --- a/Emulsion.Tests/Xmpp/XmppClientTests.fs +++ b/Emulsion.Tests/Xmpp/XmppClientTests.fs @@ -68,12 +68,12 @@ let ``connect function calls the Connect method of the client passed``(): 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 - 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 [] let ``enterRoom function calls JoinMultiUserChat``(): unit =