Skip to content

Commit

Permalink
Merge pull request #791 from ably/improve-RTN14b
Browse files Browse the repository at this point in the history
Improve RTN14b test
  • Loading branch information
funkyboy authored Sep 6, 2018
2 parents 34999f1 + a6d9ee7 commit 1b21b30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Spec/RealtimeClientConnection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,9 @@ class RealtimeClientConnection: QuickSpec {
guard let reason = stateChange?.reason else {
fail("Reason is nil"); done(); return;
}
expect(reason.code) == 40142
expect(reason.code).to(equal(40142))
expect(reason.statusCode).to(equal(401))
expect(reason.message).to(contain("Key/token status changed (expire)"))
partialDone()
}
client.connect()
Expand Down

0 comments on commit 1b21b30

Please sign in to comment.