@@ -25,7 +25,7 @@ class AwsLambdaTests: XCTestCase {
2525
2626 func testInvokeSuccess( ) {
2727 let publishExpectation = expectation ( description: " InvokeExpectation " )
28- lambdaClient? . function ( with : " AwsLambdaTestSuccess " ) . invoke ( completion: { ( response: InvocationResponse < String > ) in
28+ lambdaClient? . function ( named : " AwsLambdaTestSuccess " ) . invoke ( completion: { ( response: InvocationResponse < String > ) in
2929 XCTAssertNil ( response. errorDescription)
3030 XCTAssertNil ( response. logResult)
3131 XCTAssertNil ( response. functionError)
@@ -39,7 +39,7 @@ class AwsLambdaTests: XCTestCase {
3939
4040 func testInvokeLogging( ) {
4141 let publishExpectation = expectation ( description: " InvokeExpectation " )
42- lambdaClient? . function ( with : " AwsLambdaTestSuccess " ) . invoke ( logType: . tail, completion: { ( response: InvocationResponse < String > ) in
42+ lambdaClient? . function ( named : " AwsLambdaTestSuccess " ) . invoke ( logType: . tail, completion: { ( response: InvocationResponse < String > ) in
4343 XCTAssertNil ( response. errorDescription)
4444 XCTAssertNotNil ( response. logResult)
4545 XCTAssertNil ( response. functionError)
@@ -54,7 +54,7 @@ class AwsLambdaTests: XCTestCase {
5454 func testInvokePayload( ) {
5555 let publishExpectation = expectation ( description: " InvokeExpectation " )
5656 let payload = TestPayload ( name: " Mrvica " , number: 666 )
57- lambdaClient? . function ( with : " AwsLambdaTestPayload " ) . invoke ( payload: payload, completion: { ( response: InvocationResponse < TestPayload > ) in
57+ lambdaClient? . function ( named : " AwsLambdaTestPayload " ) . invoke ( payload: payload, completion: { ( response: InvocationResponse < TestPayload > ) in
5858 XCTAssertNil ( response. errorDescription)
5959 XCTAssertNil ( response. logResult)
6060 XCTAssertNil ( response. functionError)
@@ -68,7 +68,7 @@ class AwsLambdaTests: XCTestCase {
6868
6969 func testInvokeFailed( ) {
7070 let publishExpectation = expectation ( description: " InvokeExpectation " )
71- lambdaClient? . function ( with : " AwsLambdaTestFailed " ) . invoke ( completion: { ( response: InvocationResponse < String > ) in
71+ lambdaClient? . function ( named : " AwsLambdaTestFailed " ) . invoke ( completion: { ( response: InvocationResponse < String > ) in
7272 XCTAssertNotNil ( response. errorDescription)
7373 XCTAssertNil ( response. logResult)
7474 XCTAssert ( response. functionError == . handled)
0 commit comments