Skip to content

Commit a0ca05e

Browse files
committed
.
1 parent 37acd1b commit a0ca05e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/integrations/aws_lambda/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
)
2828
LAMBDA_FUNCTION_TIMEOUT = 10
2929
SAM_PORT = 3001
30+
TEST_SERVER_PORT = 8080
3031

3132
PYTHON_VERSION = f"python{sys.version_info.major}.{sys.version_info.minor}"
3233

@@ -101,7 +102,7 @@ def __init__(self, scope: Construct, construct_id: str, **kwargs) -> None:
101102
},
102103
)
103104

104-
dsn = f"http://123@{get_host_ip()}:9999/0" # noqa: E231
105+
dsn = f"http://123@{get_host_ip()}:{TEST_SERVER_PORT}/0" # noqa: E231
105106
print("[LocalLambdaStack] Using Sentry DSN: %s" % dsn)
106107

107108
print(
@@ -239,7 +240,7 @@ class SentryServerForTesting:
239240
A simple Sentry.io style server that accepts envelopes and stores them in a list.
240241
"""
241242

242-
def __init__(self, host="127.0.0.1", port=8080, log_level="warning"):
243+
def __init__(self, host="127.0.0.1", port=TEST_SERVER_PORT, log_level="warning"):
243244
self.envelopes = []
244245
self.host = host
245246
self.port = port

0 commit comments

Comments
 (0)