File tree 1 file changed +0
-30
lines changed
1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change @@ -186,23 +186,6 @@ impl<'a> IntoRequest for EventErrorRequest<'a> {
186
186
}
187
187
}
188
188
189
- // /runtime/init/error
190
- struct InitErrorRequest ;
191
-
192
- impl IntoRequest for InitErrorRequest {
193
- fn into_req ( self ) -> Result < Request < Body > , Error > {
194
- let uri = "/2018-06-01/runtime/init/error" . to_string ( ) ;
195
- let uri = Uri :: from_str ( & uri) ?;
196
-
197
- let req = build_request ( )
198
- . method ( Method :: POST )
199
- . uri ( uri)
200
- . header ( "lambda-runtime-function-error-type" , "unhandled" )
201
- . body ( Body :: empty ( ) ) ?;
202
- Ok ( req)
203
- }
204
- }
205
-
206
189
#[ cfg( test) ]
207
190
mod tests {
208
191
use super :: * ;
@@ -237,17 +220,4 @@ mod tests {
237
220
None => false ,
238
221
} ) ;
239
222
}
240
-
241
- #[ test]
242
- fn test_init_error_request ( ) {
243
- let req = InitErrorRequest ;
244
- let req = req. into_req ( ) . unwrap ( ) ;
245
- let expected = Uri :: from_static ( "/2018-06-01/runtime/init/error" ) ;
246
- assert_eq ! ( req. method( ) , Method :: POST ) ;
247
- assert_eq ! ( req. uri( ) , & expected) ;
248
- assert ! ( match req. headers( ) . get( "User-Agent" ) {
249
- Some ( header) => header. to_str( ) . unwrap( ) . starts_with( "aws-lambda-rust/" ) ,
250
- None => false ,
251
- } ) ;
252
- }
253
223
}
You can’t perform that action at this time.
0 commit comments