Skip to content

Conversation

@glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Nov 23, 2021

Motivation:

The zero-length write tests fail every so often because the XCTest
expectations are over fulfilled.

They can be overfulfilled when the client makes multiple attempts to
connect to the test server. This can happen because of happy eyeballs or
because the client is re-attempting to connect to the server.

Modifications:

  • Use "127.0.0.1" instead of "localhost" to avoid using happy eyeballs
  • Disable client connection re-establishment

Result:

Less flakey test.

Motivation:

The zero-length write tests fail every so often because the XCTest
expectations are over fulfilled.

They can be overfulfilled when the client makes multiple attempts to
connect to the test server. This can happen because of happy eyeballs or
because the client is re-attempting to connect to the server.

Modifications:

- Use "127.0.0.1" instead of "localhost" to avoid using happy eyeballs
- Disable client connection re-establishment

Result:

Less flakey test.
@glbrntt glbrntt added the semver/none No version bump required. label Nov 23, 2021
@glbrntt glbrntt requested a review from Lukasa November 23, 2021 11:13
@glbrntt glbrntt merged commit 6c8ed07 into grpc:main Nov 23, 2021
@glbrntt glbrntt deleted the gb-zlw-flake branch November 23, 2021 11:38
bimawa pushed a commit to StreamLayer/grpc-swift that referenced this pull request Dec 16, 2021
Motivation:

The zero-length write tests fail every so often because the XCTest
expectations are over fulfilled.

They can be overfulfilled when the client makes multiple attempts to
connect to the test server. This can happen because of happy eyeballs or
because the client is re-attempting to connect to the server.

Modifications:

- Use "127.0.0.1" instead of "localhost" to avoid using happy eyeballs
- Disable client connection re-establishment

Result:

Less flakey test.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/none No version bump required.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants