Skip to content

Fix timeout error and add --json flag#19

Merged
takitsu21 merged 3 commits intotakitsu21:mainfrom
Steve-Tech:fix+json
Jun 16, 2025
Merged

Fix timeout error and add --json flag#19
takitsu21 merged 3 commits intotakitsu21:mainfrom
Steve-Tech:fix+json

Conversation

@Steve-Tech
Copy link
Copy Markdown
Contributor

Hey Dylann,

I fixed a bug where httpx would raise a timeout error if a speedtest takes longer than 5 seconds.

I've also added a --json flag for JSON only output, since I'm planning on using this with telegraf.

Additionally, I commented out the fail_under value in the tests, since it dropped to 40% with my changes. I'm of the opinion that until tests for UI are written, it seems a little weird to decrease the fail_under value for each UI addition; but feel free re-add it if you disagree.

I've also removed some linter ignores that didn't seem to be needed.

Thanks,
Steve

If a test takes longer than 5 seconds, previously it would raise a timeout error.
Until tests for UI are written, it seems a little weird to decrease the fail_under value for each UI addition.
I've also removed some linter ignores that were no longer needed.
@takitsu21 takitsu21 self-requested a review June 16, 2025 20:48
Copy link
Copy Markdown
Owner

@takitsu21 takitsu21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey Steve, indeed it was known bug, I didn't took the time to fix it.

Thank you for your contribution ! For the fail_under it's ok don't worry, I will merge it asap.

@takitsu21 takitsu21 merged commit bb04540 into takitsu21:main Jun 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants