Skip to content

Flaky test: TestServer_HealthMonitoring_Enabled #3985

@JAORMX

Description

@JAORMX

TestServer_HealthMonitoring_Enabled in pkg/vmcp/server/health_monitoring_test.go is flaky due to tight timing thresholds.

The test uses:

  • check_interval=50ms
  • unhealthy_threshold=1
  • timeout=10ms
  • degraded_threshold=5ms

Under load or with the race detector enabled, the health check can exceed the 5ms degraded threshold, causing the test to see "degraded" instead of the expected "healthy" status.

health_monitoring_test.go:152:
    Error:      Not equal:
                expected: "healthy"
                actual  : "degraded"

The fix should increase the timing thresholds to be more tolerant of CI/local machine variance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggoPull requests that update go codevmcpVirtual MCP Server related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions