Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

Commit

Permalink
Fix tests for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinichiro Oba committed Jan 18, 2018
1 parent 9947365 commit 3bdb477
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/JSONRPCKitTests/BatchElementTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class BatchElementTests: XCTestCase {
XCTFail()
} catch {
let error = error as? JSONRPCError
if case .responseError(let code, let message, let data as [String: AnyObject])? = error {
if case .responseError(let code, let message, let data as [String: Any])? = error {
XCTAssertEqual(code, 123)
XCTAssertEqual(message, "abc")
XCTAssertEqual(data["key"] as? String, "value")
Expand Down Expand Up @@ -146,7 +146,7 @@ class BatchElementTests: XCTestCase {
XCTFail()
} catch {
let error = error as? JSONRPCError
if case .responseError(let code, let message, let data as [String: AnyObject])? = error {
if case .responseError(let code, let message, let data as [String: Any])? = error {
XCTAssertEqual(code, 123)
XCTAssertEqual(message, "abc")
XCTAssertEqual(data["key"] as? String, "value")
Expand Down

0 comments on commit 3bdb477

Please sign in to comment.