Skip to content

Commit

Permalink
resolve broken test case after merging latest orgin/main
Browse files Browse the repository at this point in the history
  • Loading branch information
5d committed May 17, 2024
1 parent cb938c7 commit a6b1684
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,10 @@ extension AppSyncListProviderTests {
func testLoadedStateGetNextPageFailure_GraphQLErrorResponse() async {
mockAPIPlugin.responders[.queryRequestResponse] =
QueryRequestResponder<List<Comment4>> { request in

XCTAssertEqual(request.apiName, "apiName")
XCTAssertEqual(request.authMode as? AWSAuthorizationType, .amazonCognitoUserPools)
let event: GraphQLOperation<List<Comment4>>.OperationResult = .success(
.failure(GraphQLResponseError.error([GraphQLError]())))
return event

return .failure(GraphQLResponseError.error([GraphQLError]()))
}

let elements = [Comment4(content: "content")]
Expand Down

0 comments on commit a6b1684

Please sign in to comment.