Skip to content

Fix flaky tests#119

Merged
ragaskar merged 1 commit intocloudfoundry:developfrom
mkocher:fix-flaky-tests
Jul 18, 2025
Merged

Fix flaky tests#119
ragaskar merged 1 commit intocloudfoundry:developfrom
mkocher:fix-flaky-tests

Conversation

@mkocher
Copy link
Member

@mkocher mkocher commented Jul 18, 2025

  • http tests were relying on a 10ms timeout for connect and tls handshake. On slow enough machines this was causing flaky failures. Changed to a 10 second timeout by default, with the option for tests to use a client with a 1ms timeout if they are testing failure cases.

  • asyc logging tests were expecting to finish within 10x the theoretical minimum time, which was good enough 999 out of 1000 times. 100x the theoretical minimum time seems to be good enough 1000 out of 1000 times.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jul 18, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: mkocher / name: Matthew Kocher (11f8cf8)

@mkocher mkocher changed the base branch from master to develop July 18, 2025 00:23
- http tests were relying on a 10ms timeout for connect and tls
  handshake. On slow enough machines this was causing flaky failures.
  Changed to a 10 second timeout by default, with the option for tests
  to use a client with a 1ms timeout if they are testing failure cases.

- asyc logging tests were expecting to finish within 10x the theoretical
  minimum time, which was good enough 999 out of 1000 times. 100x the
  theoretical minimum time seems to be good enough 1000 out of 1000
  times.
Copy link
Contributor

@ragaskar ragaskar left a comment

Choose a reason for hiding this comment

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

LGTM

@github-project-automation github-project-automation bot moved this from Inbox to Pending Merge | Prioritized in Foundational Infrastructure Working Group Jul 18, 2025
@ragaskar ragaskar merged commit f7e2680 into cloudfoundry:develop Jul 18, 2025
4 checks passed
@github-project-automation github-project-automation bot moved this from Pending Merge | Prioritized to Done in Foundational Infrastructure Working Group Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants