8000 Beta: codegenned async methods on resources by richardm-stripe · Pull Request #1171 · stripe/stripe-python · GitHub
[go: up one dir, main page]

Skip to content

Beta: codegenned async methods on resources #1171

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Feb 5, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix flaky test?
  • Loading branch information
richardm-stripe committed Feb 5, 2024
commit 7d6f8da2e43f691d6cae7ab6262c379a7ac24bc2
8 changes: 7 additions & 1 deletion tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import warnings
import time

import httpx

import stripe
import pytest
from queue import Queue
Expand Down Expand Up @@ -325,7 +327,11 @@ def do_request(self, n):
self.setup_mock_server(MockServerRequestHandler)
stripe.api_base = "http://localhost:%s" % self.mock_server_port
stripe.default_http_client_async = stripe.HTTPXClient()
stripe.default_http_client_async._timeout = 0.01
# If we set HTTPX's generic timeout the test is flaky (sometimes it's a ReadTimeout, sometimes its a ConnectTimeout)
# so we set only the read timeout specifically.
stripe.default_http_client_async._timeout = httpx.Timeout(
None, read=0.01
)
stripe.max_network_retries = 0

exception = None
Expand Down
0