Skip to content

Commit 33ad04a

Browse files
test: Reduces test reliance on error string formatting
1 parent 064e757 commit 33ad04a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Tests/GraphQLRxSwiftTests/GraphQL/SubscriptionTests.swift

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -363,13 +363,7 @@ class SubscriptionTests : XCTestCase {
363363
"priority": "meow"
364364
]
365365
)
366-
) { error in
367-
let graphQLError = error as! GraphQLError
368-
XCTAssertEqual(
369-
graphQLError.message,
370-
"Variable \"$priority\" got invalid value \"meow\".\nExpected type \"Int\", found \"meow\"."
371-
)
372-
}
366+
)
373367
}
374368

375369

@@ -505,7 +499,6 @@ class SubscriptionTests : XCTestCase {
505499
var currentResult = GraphQLResult()
506500
let _ = stream.observable.subscribe { event in
507501
currentResult = try! event.element!.wait()
508-
print(currentResult)
509502
}.disposed(by: db.disposeBag)
510503

511504
db.trigger(email: Email(

0 commit comments

Comments
 (0)