@@ -36,9 +36,9 @@ class LambdaRuntimeClientTest: XCTestCase {
3636 XCTAssertEqual ( behavior. state, 1 )
3737 }
3838
39- func testGetWorkServerInternalError ( ) {
39+ func testGetInvocationServerInternalError ( ) {
4040 struct Behavior : LambdaServerBehavior {
41- func getWork ( ) -> GetWorkResult {
41+ func getInvocation ( ) -> GetInvocationResult {
4242 . failure( . internalServerError)
4343 }
4444
@@ -62,9 +62,9 @@ class LambdaRuntimeClientTest: XCTestCase {
6262 }
6363 }
6464
65- func testGetWorkServerNoBodyError ( ) {
65+ func testGetInvocationServerNoBodyError ( ) {
6666 struct Behavior : LambdaServerBehavior {
67- func getWork ( ) -> GetWorkResult {
67+ func getInvocation ( ) -> GetInvocationResult {
6868 . success( ( " 1 " , " " ) )
6969 }
7070
@@ -88,9 +88,9 @@ class LambdaRuntimeClientTest: XCTestCase {
8888 }
8989 }
9090
91- func testGetWorkServerMissingHeaderRequestIDError ( ) {
91+ func testGetInvocationServerMissingHeaderRequestIDError ( ) {
9292 struct Behavior : LambdaServerBehavior {
93- func getWork ( ) -> GetWorkResult {
93+ func getInvocation ( ) -> GetInvocationResult {
9494 // no request id -> no context
9595 . success( ( " " , " hello " ) )
9696 }
@@ -117,7 +117,7 @@ class LambdaRuntimeClientTest: XCTestCase {
117117
118118 func testProcessResponseInternalServerError( ) {
119119 struct Behavior : LambdaServerBehavior {
120- func getWork ( ) -> GetWorkResult {
120+ func getInvocation ( ) -> GetInvocationResult {
121121 . success( ( requestId: " 1 " , payload: " payload " ) )
122122 }
123123
@@ -142,7 +142,7 @@ class LambdaRuntimeClientTest: XCTestCase {
142142
143143 func testProcessErrorInternalServerError( ) {
144144 struct Behavior : LambdaServerBehavior {
145- func getWork ( ) -> GetWorkResult {
145+ func getInvocation ( ) -> GetInvocationResult {
146146 . success( ( requestId: " 1 " , payload: " payload " ) )
147147 }
148148
@@ -167,8 +167,8 @@ class LambdaRuntimeClientTest: XCTestCase {
167167
168168 func testProcessInitErrorOnBootstrapFailure( ) {
169169 struct Behavior : LambdaServerBehavior {
170- func getWork ( ) -> GetWorkResult {
171- XCTFail ( " should not get work " )
170+ func getInvocation ( ) -> GetInvocationResult {
171+ XCTFail ( " should not get invocation " )
172172 return . failure( . internalServerError)
173173 }
174174
@@ -217,7 +217,7 @@ class LambdaRuntimeClientTest: XCTestCase {
217217 return . success( ( ) )
218218 }
219219
220- func getWork ( ) -> GetWorkResult {
220+ func getInvocation ( ) -> GetInvocationResult {
221221 self . state += 2
222222 return . success( ( " 1 " , " hello " ) )
223223 }
0 commit comments