Skip to content

Conversation

@jkyberneees
Copy link
Contributor

No description provided.

@jkyberneees jkyberneees requested a review from Copilot November 9, 2025 15:48
@jkyberneees jkyberneees merged commit cce91aa into main Nov 9, 2025
10 checks passed
@jkyberneees jkyberneees deleted the fixing-test-timing-issue branch November 9, 2025 15:50
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR increases the timeout after gateway startup in the "circuit breaker can be disabled" test from 200ms to 1000ms. This change likely addresses a timing issue where the test was failing due to the gateway not being fully ready within the original 200ms timeout.

  • Increased post-startup delay from 200ms to 1000ms for test stability

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


await gateway.listen()
await new Promise((r) => setTimeout(r, 200))
await new Promise((r) => setTimeout(r, 1000))
Copy link

Copilot AI Nov 9, 2025

Choose a reason for hiding this comment

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

This test now uses a 1000ms delay while other similar tests in the same file use 200ms (lines 35, 82, 125). This inconsistency makes the test suite slower and harder to maintain. Consider either using the same 200ms delay for consistency, or if this test genuinely needs more time, add a comment explaining why this specific test requires a longer delay.

Suggested change
await new Promise((r) => setTimeout(r, 1000))
await new Promise((r) => setTimeout(r, 200))

Copilot uses AI. Check for mistakes.
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