diff --git a/examples/miniapps/boto3-session/boto3_session_example.py b/examples/miniapps/boto3-session/boto3_session_example.py index 85a3e391..33ed85f6 100644 --- a/examples/miniapps/boto3-session/boto3_session_example.py +++ b/examples/miniapps/boto3-session/boto3_session_example.py @@ -62,10 +62,10 @@ def main(): assert service1.s3_client is s3_client assert service1.sqs_client is sqs_client - service2 = container.service1() + service2 = container.service2() print(service2, service2.s3_client, service2.sqs_client) - assert service2.s3_client is s3_client - assert service2.sqs_client is sqs_client + assert service2.s3_client.__class__.__name__ == "S3" + assert service2.sqs_client.__class__.__name__ == "SQS" if __name__ == "__main__":