Skip to content

[Bug]: Localhost DNS /etc/resolvers directory watcher has racy startup, results in test flakes. #2065

Description

@jglogan

I have done the following

  • I have searched the existing issues
  • If possible, I've reproduced the issue using the 'main' branch of this project

Steps to reproduce

This problem surfaces unpredictably in our CI tests and local builds. Locally, run:

make all test

Problem description

make all test occasionally fails with the error output:

✘ Test testWatchingNonExistingParent() recorded an issue at DirectoryWatcherTest.swift:131:13: Expectation failed: !((createdPaths.paths → []).isEmpty → true → true)

Environment

- OS: 26
- Xcode: 26
- Container: 1.2.0

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

networkIssues and features associated with networking and DNS.

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions