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

fix(uptime): Improve organization_uptime_stats tests #88032

Conversation

evanpurkhiser
Copy link
Member

@evanpurkhiser evanpurkhiser commented Mar 26, 2025

response = self.get_response(
self.organization.slug,
project=[self.project.id],
projectUptimeSubscriptionId=[str(self.project_uptime_subscription.id)],
since=(datetime.now(timezone.utc) - timedelta(days=90)).timestamp(),
until=datetime.now(timezone.utc).timestamp(),
resolution="1h",
resolution="1m",
Copy link
Member Author

Choose a reason for hiding this comment

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

This was the main fix, I just set the resolution way lower so we will absolutely hit the period limit

@evanpurkhiser evanpurkhiser merged commit 26f5695 into master Mar 27, 2025
48 checks passed
@evanpurkhiser evanpurkhiser deleted the evanpurkhiser/fix-uptime-improve-organization-uptime-stats-tests branch March 27, 2025 18:49
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