File tree 6 files changed +12
-4
lines changed
6 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ generated.docker-compose.*.yml
2
2
3
3
tests /integration /resources /init
4
4
5
+ .idea
6
+
5
7
node_modules /
6
8
* .tsbuildinfo
7
9
Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ class FramedTelemetryLogSink(object):
324
324
325
325
def __init__ (self , fd ):
326
326
self .fd = int (fd )
327
- self .frame_type = 0xA55A0001 .to_bytes (4 , "big" )
327
+ self .frame_type = 0xA55A0001 .to_bytes (4 , "big" )
328
328
329
329
def __enter__ (self ):
330
330
self .file = os .fdopen (self .fd , "wb" , 0 )
Original file line number Diff line number Diff line change 1
1
AWS_LAMBDA_CPP_RELEASE=0.2.6
2
- CURL_VERSION=7.83.0
2
+ CURL_MAJOR_VERSION=7
3
+ CURL_MINOR_VERSION=83
4
+ CURL_PATCH_VERSION=0
Original file line number Diff line number Diff line change 19
19
cd deps
20
20
. ./versions
21
21
22
+ CURL_VERSION=" ${CURL_MAJOR_VERSION} .${CURL_MINOR_VERSION} .${CURL_PATCH_VERSION} "
23
+
22
24
rm -rf ./curl-$CURL_VERSION
23
25
rm -rf ./aws-lambda-cpp-$AWS_LAMBDA_CPP_RELEASE
24
26
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ source versions
9
9
rm -f aws-lambda-cpp-* .tar.gz && rm -f curl-* .tar.gz
10
10
11
11
# Grab Curl
12
- wget -c https://github.com/curl/curl/archive/ curl-$CURL_VERSION . tar.gz
12
+ wget -c " https://github.com/curl/curl/releases/download/ curl-${CURL_MAJOR_VERSION} _ ${CURL_MINOR_VERSION} _ ${CURL_PATCH_VERSION} /curl- ${CURL_MAJOR_VERSION} . ${CURL_MINOR_VERSION} . ${CURL_PATCH_VERSION} . tar.gz"
13
13
14
14
# Grab aws-lambda-cpp
15
15
wget -c https://github.com/awslabs/aws-lambda-cpp/archive/v$AWS_LAMBDA_CPP_RELEASE .tar.gz -O - | tar -xz
Original file line number Diff line number Diff line change @@ -1016,7 +1016,9 @@ def test_log_error_empty_stacktrace_line_framed_log_sink(self):
1016
1016
# Just to ensure we are not logging the requestId from error response, just sending in the response
1017
1017
def test_log_error_invokeId_line_framed_log_sink (self ):
1018
1018
with NamedTemporaryFile () as temp_file :
1019
- with bootstrap .FramedTelemetryLogSink (temp_file .name ) as log_sink :
1019
+ with bootstrap .FramedTelemetryLogSink (
1020
+ os .open (temp_file .name , os .O_CREAT | os .O_RDWR )
1021
+ ) as log_sink :
1020
1022
err_to_log = bootstrap .make_error (
1021
1023
"Error message" ,
1022
1024
"ErrorType" ,
You can’t perform that action at this time.
0 commit comments