Skip to content

Commit

Permalink
Don't assert on error messages. (#925)
Browse files Browse the repository at this point in the history
They may change (as this one has). That's what codes are for.
  • Loading branch information
tcard authored Dec 8, 2019
1 parent 6c1b3dc commit a89a864
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Spec/Auth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4064,7 +4064,6 @@ class Auth : QuickSpec {
waitUntil(timeout: testTimeout) { done in
client.connection.once(.failed) { stateChange in
expect(stateChange!.reason!.code).to(equal(40144))
expect(stateChange!.reason!.description).to(contain("invalid signature"))
done()
}
client.connect()
Expand Down Expand Up @@ -4111,7 +4110,6 @@ class Auth : QuickSpec {
waitUntil(timeout: testTimeout) { done in
client.connection.once(.disconnected) { stateChange in
expect(stateChange!.reason!.code).to(equal(40144))
expect(stateChange!.reason!.description).to(contain("invalid signature"))
done()
}
client.connect()
Expand Down Expand Up @@ -4209,7 +4207,6 @@ class Auth : QuickSpec {
waitUntil(timeout: testTimeout) { done in
client.connection.once(.disconnected) { stateChange in
expect(stateChange!.reason!.code).to(equal(40144))
expect(stateChange!.reason!.description).to(contain("invalid signature"))
done()
}
client.connect()
Expand Down

0 comments on commit a89a864

Please sign in to comment.