From ffe5f689a517927beedcb9f6ed59edec15420caa Mon Sep 17 00:00:00 2001 From: Cesare Rocchi Date: Fri, 27 Jul 2018 17:11:06 +0200 Subject: [PATCH] Fix some JWT tests Note: introduced by this 1.1 spec change https://github.com/ably/ably-ios/pull/752/commits/666d53e21d40dbf29a9ee9f855ed97accce8fa38 --- Spec/Auth.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Spec/Auth.swift b/Spec/Auth.swift index 49deed8d7..71b2e1af4 100644 --- a/Spec/Auth.swift +++ b/Spec/Auth.swift @@ -3738,7 +3738,7 @@ class Auth : QuickSpec { it("fails to connect with reason 'invalid signature'") { waitUntil(timeout: testTimeout) { done in - client.connection.once(.failed) { stateChange in + client.connection.once(.disconnected) { stateChange in expect(stateChange!.reason!.code).to(equal(40144)) expect(stateChange!.reason!.description).to(contain("invalid signature")) done() @@ -3835,7 +3835,7 @@ class Auth : QuickSpec { it("fails to connect") { waitUntil(timeout: testTimeout) { done in - client.connection.once(.failed) { stateChange in + client.connection.once(.disconnected) { stateChange in expect(stateChange!.reason!.code).to(equal(40144)) expect(stateChange!.reason!.description).to(contain("invalid signature")) done()