Skip to content
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

opentelemetry-test-utils: add async base test class for asgi #4106

Merged
merged 4 commits into from
Aug 26, 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
Next Next commit
update default timeout to 0.01
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
  • Loading branch information
emdneto committed Aug 24, 2024
commit 5d28bbb282a68d45b667019a706894e31c79710e
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ async def send_input(self, message):
async def send_default_request(self):
await self.send_input({"type": "http.request", "body": b""})

async def get_output(self, timeout=1):
async def get_output(self, timeout=0.01):
return await self.communicator.receive_output(timeout)

async def get_all_output(self, timeout=1):
async def get_all_output(self, timeout=0.01):
outputs = []
while True:
try:
Expand Down
Loading